app.py 527 B

12345678910111213141516171819202122
  1. #!/usr/bin/env python3
  2. import gi
  3. import sys
  4. import app.mainwindow as mainwindow
  5. import app.core.utils as utils
  6. gi.require_version('Gtk', '4.0')
  7. from gi.repository import Gio, Gtk
  8. class Lyrebird(Gtk.Application):
  9. def __init__(self, **kwargs):
  10. super().__init__(**kwargs)
  11. self.connect('activate', self.on_activate)
  12. def on_activate(self, app):
  13. self.win = mainwindow.MainWindow(application=app)
  14. self.win.present()
  15. app = Lyrebird(application_id="org.lyrebird.Lyrebird")
  16. app.run(sys.argv)