def __init__(self, name, app_id, id=None, icon=None, startup=None, on_exit=None, factory=None):
    self.factory = get_platform_factory(factory)
    App.app = self
    App.app_module = self.__module__.split('.')[0]
    App.app_dir = os.path.dirname(sys.modules[App.app_module].__file__)
    self.name = name
    self._app_id = app_id
    self._id = (id if id else identifier(self))
    self.commands = CommandSet(factory=self.factory)
    self._startup_method = startup
    self.default_icon = Icon('tiberius', system=True)
    self.icon = icon
    self._main_window = None
    self._on_exit = None
    self._full_screen_windows = None
    self._impl = self._create_impl()
    self.on_exit = on_exit
def __init__(self, name, app_id, id=None, icon=None, startup=None, on_exit=None, factory=None):
    self.factory = get_platform_factory(factory)
    App.app = self
    App.app_module = self.__module__.split('.')[0]
    App.app_dir = os.path.dirname(sys.modules[App.app_module].__file__)
    self.name = name
    self._app_id = app_id
    self._id = (id if id else identifier(self))
    self.commands = CommandSet(factory=self.factory)
    self._startup_method = startup
    self.default_icon = Icon('tiberius', system=True)
    self.icon = icon
    self._main_window = None
    self._on_exit = None
    self._full_screen_windows = None
    self._impl = self._create_impl()
    self.on_exit = on_exit