def __init_components(self): self.titlebar = Titlebar(self) self.sleep_timer = SleepTimer(self) self.speed = PlaybackSpeed(self) self.search = Search(self) self.settings = Settings(self) self.titlebar.activate()
def __init_components(self): self.titlebar = Titlebar(self) self.sleep_timer = SleepTimer(self) self.speed = PlaybackSpeed(self) self.search = Search(self) self.settings = Settings(self) self.book_overview = BookOverview(self) self.titlebar.activate() if player.get_current_track() is None: self.block_ui_buttons(True)
def __init_components(self): self.titlebar = Titlebar() self.sleep_timer = SleepTimer() self.speed = PlaybackSpeed() self.search = Search() self.settings = Settings() self.settings.add_listener(self.__on_settings_changed) self.book_overview = BookOverview() self.fs_monitor = fs_monitor.FilesystemMonitor() self.offline_cache = offline_cache.OfflineCache() player.init() self.titlebar.activate() if player.get_current_track() is None: self.block_ui_buttons(True)