def __init__(self, core): BaseScreen.__init__(self, core) self.subscreens.append(NowPlayingTrack(core)) self.subscreens.append(SeekScreen(core)) self.subscreens.append(VolumeScreen(core)) self.subscreens.append(Playlists(core)) self.current_subscreen_index = 0 self.playing = core.playback.get_state().get()
def __init__(self, DBName=""): if DBName: CDBCore.CDBCore.Connection.Database = DBName elif not CDBCore.CDBCore.Connection.Database: raise Exception("No database selected.") BaseScreen.__init__(self, screen_type="ViewTables")
def __init__(self, core): BaseScreen.__init__(self, core) self.progress_bar = ProgressBar(0, DisplayObject.MAX_CHARS_IN_ROW, 5) self.reference_second = 0 self.second_in_song = 0 self.current_second = 0 self.track_current_second_text = None self.track_length_text = None self.length = None self.paused = False
def __init__(self, dbName="", table=""): if not CDBCore.CDBCore.Connection: raise Exception("No Connection object specified.") if dbName: CDBCore.CDBCore.Connection.Database = dbName CDBCore.CDBCore.Connection.QueryString("USE {}".format(CDBCore.CDBCore.Connection.Database)) if not CDBCore.CDBCore.Connection.Database: raise Exception("No database specified.") self.Table = table BaseScreen.__init__(self, screen_type="QueryTable")
def __init__(self, resultsObj, dataMethod=None, attr=None, majorScreen="QueryTable"): if dataMethod: self.DataMethod = dataMethod else: self.DataMethod = None if attr: merged_attributes = DataScreen.default_attributes.copy() merged_attributes.update(attr) self.Attr = merged_attributes else: self.Attr = DataScreen.default_attributes self.Result = resultsObj self.MajorScreen = majorScreen BaseScreen.__init__(self, screen_type="DataScreen") if self.MajorScreen == "QueryTable" or self.MajorScreen == "ViewTables": self.LoadResult() elif self.MajorScreen == "AlterTable": self.LoadAlterTable()
def __init__(self): BaseScreen.__init__(self) self.Name = "" self.Columns = 0
def __init__(self, core): BaseScreen.__init__(self, core) self.playlists = [] self.current_playlist = 0 self.on_playlists_loaded()
def __init__(self): BaseScreen.__init__(self, screen_type="MainMenu")
def __init__(self, label, buttons): BaseScreen.__init__(self) self.PassiveWidgets = label self.ActionWidgets = buttons
def __init__(self): BaseScreen.__init__(self, screen_type="StatusScreen")
def __init__(self, unit_test_case): BaseScreen.__init__(self, unit_test_case) self.verifyScreenTitle('API Demos 17')
def __init__(self): BaseScreen.__init__(self, screen_type="ConnectionWizard")
def __init__(self): BaseScreen.__init__(self)
def __init__(self, name, columns): self.Name = name self.Columns = columns BaseScreen.__init__(self)
def __init__(self, core): BaseScreen.__init__(self, core) self.volume = core.mixer.get_volume().get() self.progress_bar = ProgressBar(100, DisplayObject.MAX_CHARS_IN_ROW, 5) self.progress_bar.set_value(self.volume)
def __init__(self, core): BaseScreen.__init__(self, core) self.track_name = "No track" self.tl_track = None
def __init__(self): BaseScreen.__init__(self, screen_type="HomeScreen")