(self, selection)
A different plugin was selected
A different plugin was selected
A different plugin was selected
def on_plugin_selection_changed(self, selection):
        """A different plugin was selected"""
        (listmodel, rowiter) = selection.get_selected()
        if not rowiter:
            # Something is wrong, just jump to the first item in the list
            treeview = selection.get_tree_view()
            liststore = treeview.get_model()
            selection.select_iter(liststore.get_iter_first())
            return
        plugin = listmodel.get_value(rowiter, 0)
        self.set_plugin(plugin)
        self.previous_plugin_selection = plugin

        widget = self.builder.get_object('plugintogglebutton')
def on_plugin_selection_changed ( self , selection ) : ( listmodel , rowiter ) = selection . get_selected ( ) if not rowiter : # Something is wrong, just jump to the first item in the list treeview = selection . get_tree_view ( ) liststore = treeview . get_model ( ) selection . select_iter ( liststore . get_iter_first ( ) ) return plugin = listmodel . get_value ( rowiter , 0 ) self . set_plugin ( plugin ) self . previous_plugin_selection = plugin widget = self . builder . get_object ( 'plugintogglebutton' )