Logo Search packages:      
Sourcecode: panflute version File versions  Download package

def panflute::applet::prefs::Preferences::layout_up_clicked_cb (   self,
  button 
)

Move the selected widget up one row in the list.

Definition at line 222 of file prefs.py.

00222                                            :
        """
        Move the selected widget up one row in the list.
        """

        sel = self.__builder.get_object ("layout_view").get_selection ()
        model, iter = sel.get_selected ()
        if iter is not None:
            # Annoying, there's no iter_prev...
            (index,) = model.get_path (iter)
            if index > 0:
                prev = model.get_iter ((index - 1,))
                model.swap (iter, prev)
                self.__layout_selection_changed_cb (sel)


    def layout_down_clicked_cb (self, button):


Generated by  Doxygen 1.6.0   Back to index