def __init__(self, **kwargs):
        super(AppLauncherWidget, self).__init__(**kwargs)

        self.use_top_bar = False

        self.cols = 4
        self.rows = 2

        self.col_force_default = True
        self.row_force_default = True

        with self.canvas.before:
            Color(1, 1, 1, 1)
            self.rect = Rectangle(size=self.size, pos=self.pos, source=FileIO.sysdata_directory() + "/launcher/background.png")
        self.bind(size=self._update_rect, pos=self._update_rect)
Example #2
0
    def _run(self):
        #init system
        System.instance.provide_shutdown_callback(self.__system_shutdown_callback)

        # init networking
        Networking.instance.provide_server(ServerProvider())

        # init app launcher on main thread
        clock.ClockBase.schedule_once(clock.Clock, self._init_app_launcher)

        # load all applications in apps directory
        ApplicationManager.instance.load_applications(CoreFileIO.apps_directory())

        for index in range(0, ApplicationManager.instance.application_count()):
            ApplicationManager.instance.application_at(index).app().on_system_boot()