def __config_cols(self, button, buttons): def __closed(widget): cols = widget.get_strings() self.__update(buttons, self._toggle_data, cols) columns = self.__get_current_columns(buttons) m = TagListEditor(_("Edit Columns"), columns) m.set_transient_for(qltk.get_top_parent(self)) m.connect('destroy', __closed) m.show()
def _open_editor(widget): def _editor_closed(widget): tags = widget.get_strings() config.setlist("plugins", "wiki_tags", tags) tags = config.getlist("plugins", "wiki_tags", self.DEFAULT_TAGS) editor = TagListEditor(_("Edit Tags"), [] if tags == [''] else tags) editor.set_transient_for(get_top_parent(parent)) editor.connect('destroy', _editor_closed) editor.show()