Esempio n. 1
0
    def __init__(self):
        TabbedPanel.__init__(self)

        self.device = hid.device()
        self.device.open(6000, 65280)  #MSI keyboard

        self.region_colors = [1, 4, 6]
        self.region_intensity = [1, 1, 1]
Esempio n. 2
0
    def __init__(self):
        TabbedPanel.__init__(self)

        self.device=hid.device()
        self.device.open(6000,65280) #MSI keyboard

        self.region_colors=[1,4,6]
        self.region_intensity=[1,1,1]
Esempio n. 3
0
    def __init__(self):
        TabbedPanel.__init__(self)
        
        self.mangaBackGroundDownloader = MangaBackGroundDownloader.MangaBackGroundDownloader()

        self.list_adapter.bind(on_selection_change=self.mangaSelected)

        self.ids.downloadChapters.bind(on_press=self.downloadChapters)
        self.ids.getMangaList.bind(on_press=self.downloadMangaList)

        self.ids.pauseDownloadSession.bind(on_press=self.pauseCancelDownloads)
        self.ids.pauseAllDownloadSession.bind(on_press=self.pauseCancelDownloads)
        self.ids.removeDownloadSession.bind(on_press=self.pauseCancelDownloads)
        self.ids.removeAllDownloadSession.bind(on_press=self.pauseCancelDownloads)
        self.ids.resumeDownloadSession.bind(on_press=self.pauseCancelDownloads)
        self.ids.resumeAllDownloadSession.bind(on_press=self.pauseCancelDownloads)

        self.ids.selectAllDownloadSession.bind(on_press=self.selectUnSelectList)
        self.ids.clearAllDownloadSession.bind(on_press=self.selectUnSelectList)
        self.ids.selectAllChapters.bind(on_press=self.selectUnSelectList)
        self.ids.clearAllChapters.bind(on_press=self.selectUnSelectList)
        self.ids.selectNew.bind(on_press=self.selectUnSelectList)
        self.ids.downloadNew.bind(on_press=self.downloadNew)

        self.init = True
        self.mangaBackGroundDownloader.getMangaList(self.currentMangaSite, self.updateMangaList)


        #Build the settings page
        self.settings = SettingsWithSidebar()
        self.settings.interface.menu.remove_widget(self.settings.interface.menu.close_button)
        app = App.get_running_app()
        self.config = app.load_config()
        self.settings.add_json_panel('Manga Settings', self.config, 'manga_settings.json')
        self.settings.add_json_panel('Proxy Settings', self.config, 'proxy_settings.json')
        self.ids.optionTab.add_widget(self.settings)

        self.mangaBackGroundDownloader.setConfig(self.config)

        self.settings.bind(on_config_change=self.on_config_change)
        self.setDownloadPath()
        self.setProxyInfo()
 def __init__(self):
     TabbedPanel.__init__(self)
     self.commChoice = ""
     self.ser = ""
     self.enterCount = ['Enter', 0]
     self.qryData = []
 def __init__(self):
     TabbedPanel.__init__(self)
     self.commChoice = ""
     self.ser = ""
     self.enterCount = ['Enter', 0]
     self.qryData = []
Esempio n. 6
0
 def __init__(self, controller, character):
     TabbedPanel.__init__(self)
     self.point_buy.clear_widgets()
     self.point_buy.add_widget(PointBuyControls(controller, character))