def toggled(self, button): selected_mode = COLUMN_MODE_SMALL if self.buttons[1].get_active(): selected_mode = COLUMN_MODE_WIDE if self.buttons[2].get_active(): selected_mode = COLUMN_MODE_COLUMNAR config.settext("browsers", "pane_mode", selected_mode) self.browser.set_all_column_mode(selected_mode)
def save(self): text = self.__searchbar.get_text() config.settext("browsers", "query_text", text) selection = self.view.get_selection() model, rows = selection.get_selected_rows() names = filter(None, [model[row][self.KEY] for row in rows]) config.set("browsers", "radio", "\n".join(names))
def save(self): config.settext("browsers", "query_text", self._get_text()) selected = [] for pane in self._panes: selected.append(pane.get_restore_string()) to_save = u"\n".join(selected) config.settext("browsers", "pane_selection", to_save)
def save(self): text = self.__searchbar.get_text() config.settext("browsers", "query_text", text) self.api_client.save_auth() model, paths = self.view.get_selection().get_selected_rows() if paths: row = model[paths[0]] filter_type = row[self.ModelIndex.TYPE] config.set("browsers", "soundcloud_selection", filter_type)
def save(self): conf = self.__get_config_string() config.settext("browsers", "covergrid", conf) text = self.__search.get_text() config.settext("browsers", "query_text", text)
def save(self): config.settext("browsers", "query_text", self._get_text())
def __changed(self, item, player, mode): if item.get_active(): config.settext("player", "replaygain_mode", mode) self.__set_mode(player, mode)
def finalize(self, restored): config.settext("browsers", "query_text", u"")
def save(self): config.settext("browsers", "query_text", self._get_text()) self._sb_box.save()
def save(self): text = self.__searchbar.get_text() config.settext("browsers", "query_text", text) self.api_client.save_auth()
def finalize(self, restored): config.settext("browsers", "query_text", u"") if not restored: self.fill_panes()
def save(self): text = self.__searchbar.get_text() config.settext("browsers", "query_text", text) self.api_client.save_token()
def on_combo_changed(combo): new_language = model.get_value(combo.get_active_iter()) if new_language is None: new_language = u"" config.settext("settings", "language", new_language)
def save(self): conf = self.__get_config_string() config.settext("browsers", "albums", conf) text = self.__search.get_text() config.settext("browsers", "query_text", text)
def on_changed(entry, *args): config.settext(section, option, entry.get_text())