def preferences_load(self, d): PreferencesProvider.preferences_load(self, d) if not self.preferences["path"]: self.preferences["path"] = catota.utils.which("mplayer") self.player_path.set_text(self.preferences["path"]) self.player_params.set_text(self.preferences["params"]) def set_combo_item(wid, item): for i, row in enumerate(wid.get_model()): if row[0] == item: wid.set_active(i) break set_combo_item(self.player_ao, self.preferences["audio_output"]) set_combo_item(self.player_acodec, self.preferences["audio_codecs"])
def preferences_load(self, d): PreferencesProvider.preferences_load(self, d) self.address.set_text(self.preferences["address"]) self.port.set_value(self.preferences["port"])