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

def mouseTrap::dialogs::ClicksDialog::__init__ (   self,
  gui 
)

Initialize the Clicks Dialog.

Arguments:
- self: The main object pointer.
- mouseTrap: The mouseTrap object pointer.
- cAm: The camera object pointer

Definition at line 198 of file dialogs.py.

00198                              :
        """
        Initialize the Clicks Dialog.
        
        Arguments:
        - self: The main object pointer.
        - mouseTrap: The mouseTrap object pointer.
        - cAm: The camera object pointer
        """
        
        gtk.Window.__init__( self )

        self.gui = gui
        self.mouseTrap = mouseTrap
        
        self.set_property("skip-taskbar-hint", True)
        self.set_keep_above( True )
        self.set_size_request( 500 , 120)
        self.set_default_size( 500 , 120)
        self.width, self.height = self.get_default_size()
        
        self.set_title(_('Clicks Panel'))
        
        self.set_app_paintable(True)
        #self.set_decorated(False)
        
        self.buttons = []
        self.blue  = '#1161d9'
        self.green = '#60da11'
        evtBox = gtk.EventBox()
        
        buttonsBox = gtk.HBox( spacing = 6 )
        buttonsBox.show_all()
        
        self.leftClick = gtk.Button()
        self.leftClick.add(self._newImageButton(_("Left Click"), 
                                                  "%s/images/leftClick.png" % env.mTDataDir))
        self.leftClick.connect("clicked", self.executeClick, 'b1c')
        self.leftClick.show()
        self.buttons.append( self.leftClick )
        buttonsBox.pack_start( self.leftClick )

        self.doubleClick = gtk.Button()
        self.doubleClick.add(self._newImageButton(_("Double Click"), 
                                                    "%s/images/doubleClick.png" % env.mTDataDir))
        self.doubleClick.connect("clicked", self.executeClick, 'b1d')
        self.doubleClick.show()
        self.buttons.append( self.doubleClick )
        buttonsBox.pack_start( self.doubleClick )
                
        self.leftHold = gtk.Button()
        self.leftHold.add(self._newImageButton(_("Drag/Drop Click"), 
                                                 "%s/images/leftHold.png" % env.mTDataDir))
        self.leftHold.connect("clicked", self.executeClick, 'b1p')
        self.leftHold.show()
        self.buttons.append( self.leftHold )
        buttonsBox.pack_start( self.leftHold )
        
        #~ self.middleClick = gtk.Button()
        #~ self.middleClick.add(self._newImageButton(_("Middle Click"), "%s/images/middleClick.png" % env.mTDataDir))
        #~ self.middleClick.connect("clicked", self.executeClick, 'b2c')
        #~ self.middleClick.show()
        #~ self.buttons.append( self.middleClick )
        #~ buttonsBox.pack_start( self.middleClick )
        
        self.rightClick = gtk.Button()
        self.rightClick.add(self._newImageButton(_("Right Click"), 
                                                   "%s/images/rightClick.png" % env.mTDataDir))
        self.rightClick.connect("clicked", self.executeClick, 'b3c')
        self.rightClick.show()
        self.buttons.append( self.rightClick )
        buttonsBox.pack_start( self.rightClick )
        
        self.add( buttonsBox  ) 

    def showPanel( self ):


Generated by  Doxygen 1.6.0   Back to index