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

def mouseTrap::prefGui::preffGui::_buildInterface (   self  )  [private]

Builds the preffGUI.

Arguments:
- self: The main object pointer.

Definition at line 79 of file prefGui.py.

00079                                :
        """
        Builds the preffGUI.
        
        Arguments:
        - self: The main object pointer.
        """

        accelGroup = gtk.AccelGroup()
        self.add_accel_group( accelGroup )
        
        accelGroup = accelGroup
        
        self.set_title( _("mouseTrap Preferences") )
        self.set_size_request( 600 , 400)
        self.connect( "destroy", self.close)
        
        self.Table = gtk.Table( 3, 6, False )
        
        self.NoteBook = gtk.Notebook()
        self.NoteBook.set_tab_pos( gtk.POS_TOP )
        self.Table.attach( self.NoteBook, 0, 6, 0, 1 )
        self.NoteBook.show()
        
        self.mainGuiTab()
        self.camTab()
        self.mouseTab()
        self.debugTab()
        
        try:
            scriptHdlr.loaded.prefTab( self )
        except:
            # The loaded profile doesn't have preferences tab
            pass

        ####################
        # Bottom's buttons #
        ####################
        self.ButtonsBox = gtk.HBox( False, spacing=6 )
        
        self.AcceptButton = gtk.Button( _("Accept"), stock=gtk.STOCK_OK)
        self.AcceptButton.connect("clicked", self.acceptButtonClick )
        self.ButtonsBox.pack_end( self.AcceptButton )
        
        CancelButton = gtk.Button( _("Accept"), stock=gtk.STOCK_CANCEL )
        CancelButton.connect("clicked", self.close )
        self.ButtonsBox.pack_end( CancelButton)
        
        self.ApplyButton = gtk.Button( _("Accept"), stock=gtk.STOCK_APPLY )
        self.ApplyButton.connect( "clicked", self.applyButtonClick )
        self.ButtonsBox.pack_end( self.ApplyButton )
        
        self.ButtonsBox.show_all()
        
        self.Table.attach(self.ButtonsBox, 1, 2, 2, 3, 'fill', False)
        self.Table.show()
        self.add( self.Table )
        self.show()

    def mainGuiTab( self ):


Generated by  Doxygen 1.6.0   Back to index