def __init__(self, interface): self.interface = interface if self.interface.icon_id: self.icon = Icon.load(self.interface.icon_id) else: self.icon = None self._widgets = []
def create(self): Icon.app_icon = Icon.load(self.interface.icon, default=Icon.TIBERIUS_ICON) # Stimulate the build of the app self.native = Gtk.Application(application_id=self.interface.app_id, flags=Gio.ApplicationFlags.FLAGS_NONE) # Connect the GTK signal that will cause app startup to occur self.native.connect('startup', self.startup) self.native.connect('activate', self.activate) # self.native.connect('shutdown', self.shutdown) self.actions = None