Ejemplo n.º 1
0
    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 = []
Ejemplo n.º 2
0
    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 = []
Ejemplo n.º 3
0
Archivo: app.py Proyecto: pybee/toga
    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
Ejemplo n.º 4
0
    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