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

def mouseTrap::prefGui::preffGui::mouseTab (   self  ) 

The cam module Preff Tab.

Arguments:
- self: The main object pointer.

Definition at line 209 of file prefGui.py.

00209                         :
        """
        The cam module Preff Tab.
        
        Arguments:
        - self: The main object pointer.
        """
        
        Frame = gtk.Frame()

        camBox = gtk.VBox( spacing = 6 )
        
        reqMov = self.addSpin( _("Step Speed: "), "stepSpeed", self.settings.getint( "mouse", "stepSpeed" ), "mouse", "stepSpeed" )
        camBox.pack_start( reqMov, False, False )

        defClickF = gtk.Frame( _( "Default Click:" ) )
        
        defClicks = {  "b1c"   :  _("Left Click"), 
                       "b1d"   :  _("Double Click"),
                       "b1p"   :  _("Drag/Drop Click"),
                       "b3c"   :  _("Right Click")}
                       
        defClicksInv = dict((v,k) for k,v in defClicks.iteritems())
                       
        defClick = gtk.combo_box_new_text()
        defClick.append_text(defClicks[self.settings.get( "mouse", "defClick" )])
        
        defClicklBl = gtk.Label(self.settings.get( "mouse", "defClick" ))
        self.preffWidgets['defClick'] = defClicklBl
        
        for mode in defClicks:
            if mode == self.settings.get( "mouse", "defClick" ): 
                continue
            defClick.append_text( defClicks[mode] )
            
        defClick.connect('changed', self._comboChanged, "mouse", "defClick", defClicksInv)
        defClick.set_active(0)
        
        defClickF.add( defClick)
        camBox.pack_start( defClickF, False, False )
        
        
        mouseModF = gtk.Frame( _( "Select Mouse Mode:" ) )
        
        mouseModes = env.mouseModes
                       
        mouseModesInv = dict((v,k) for k,v in mouseModes.iteritems())
                       
        mouseMod = gtk.combo_box_new_text()
        mouseMod.append_text(mouseModes[self.settings.get( "cam", "mouseMode" )])
        
        mouseModlBl = gtk.Label(self.settings.get( "cam", "mouseMode" ))
        self.preffWidgets['mouseMode'] = mouseModlBl
        
        for mode in mouseModes:
            if mode == self.settings.get( "cam", "mouseMode" ): 
                continue
            mouseMod.append_text( mouseModes[mode] )
            
        mouseMod.connect('changed', self._comboChanged, "cam", "mouseMode", mouseModesInv)
        mouseMod.set_active(0)
        
        mouseModF.add( mouseMod)
        camBox.pack_start( mouseModF, False, False )

        camBox.show_all()
        
        Frame.add( camBox )
        Frame.show()
        
        self.NoteBook.insert_page(Frame, gtk.Label( _("Mouse") ) )
    
    def debugTab( self ):


Generated by  Doxygen 1.6.0   Back to index