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

def panflute::applet::prefs::Preferences::__layout_selection_changed_cb (   self,
  sel 
) [private]

Enable or disable the layout buttons according to the selection.

Definition at line 263 of file prefs.py.

00263                                                  :
        """
        Enable or disable the layout buttons according to the selection.
        """

        model, iter = sel.get_selected ()
        if iter is not None:
            is_first = (model.get_path (iter) == (0,))
            is_last = (model.iter_next (iter) is None)
        else:
            is_first = True
            is_last = True

        self.__builder.get_object ("layout_top").props.sensitive = not is_first
        self.__builder.get_object ("layout_up").props.sensitive = not is_first
        self.__builder.get_object ("layout_down").props.sensitive = not is_last
        self.__builder.get_object ("layout_bottom").props.sensitive = not is_last


    def layout_store_rows_reordered_cb (self, model, path, iter, new_order):


Generated by  Doxygen 1.6.0   Back to index