Logo Search packages:      
Sourcecode: gnome-mousetrap version File versions  Download package

def mouseTrap::prefGui::preffGui::_comboChanged (   self,
  widget,
  section,
  option,
  modes 
) [private]

On combo change. This function is the callback for the on_change
event.

This helps to keep the combobox settings variable updated with the 
selected option.

Arguments:
- self: The main object pointer.
- widget: The widget pointer.
- section: The section of the settings object.
- option: The option in the section.
- modes: The new value.

Definition at line 366 of file prefGui.py.

00366                                                              :
        """
        On combo change. This function is the callback for the on_change
        event.
        
        This helps to keep the combobox settings variable updated with the 
        selected option.
        
        Arguments:
        - self: The main object pointer.
        - widget: The widget pointer.
        - section: The section of the settings object.
        - option: The option in the section.
        - modes: The new value.
        """
        
        model = widget.get_model()
        index = widget.get_active()
        self.settings.set( section, option, modes[model[index][0]] )
        
    def addSpin( self, label, var, startValue, section, option, min = 1, max = 15):


Generated by  Doxygen 1.6.0   Back to index