def on_plugins_tv_cursor_changed(self, treeview): selection = self.plugins_tree.get_selection() model, selected = selection.get_selected() if selected: plugin = plugmanager.get_plugin_class(model[selected][3]) self.plugconf_btn.set_sensitive(pluglib.verify_conf_dialog(plugin))
def on_plugconf_btn_clicked(self, button): selection = self.plugins_tree.get_selection() model, selected = selection.get_selected() if selected: plugin = plugmanager.get_plugin_class(model[selected][3]) if pluglib.verify_conf_dialog(plugin): plugin.configure_dialog(self.parent)