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

def holdProfile::Profile::__init__ (   self,
  gui 
)

The HoldProfile Class Constructor.

Initialize the HoldProfile class and sets the needed attributes.

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

Definition at line 53 of file holdProfile.py.

00053                              :
        """
        The HoldProfile Class Constructor.
        
        Initialize the HoldProfile class and sets the needed attributes.
        
        Arguments:
        - self: The main object pointer.
        - mouseTrap: The mouseTrap object pointer.
        - cAm: The camera object pointer.
        """

        self.gui         = gui
        self.mTp         = mouseTrap
        self.settings    = mouseTrap.settings
        self.step        = self.settings.get( "mouse", "stepSpeed" )
        self.reqMovement = None

        self.stopMove     = None
        self.startMove    = None
        self.isMoving     = False
 
        self._loadSettings()
        
        self.pref = { 'reqMovement' : 'spinButton' }
       
        
        self.clickCorner     = cv.cvPoint( 100 - self.reqMovement, 80 - self.reqMovement)
        self.scUpCorner      = cv.cvPoint( 100 + self.reqMovement, 80 - self.reqMovement)
        self.scDownCorner    = cv.cvPoint( 100 + self.reqMovement, 80 + self.reqMovement)
        self.defClickCorner  = cv.cvPoint( 100 - self.reqMovement, 80 + self.reqMovement)


        self.area = MapperArea()
        self.area.area( 100 - self.reqMovement, 80 - self.reqMovement, 100 + self.reqMovement, 80 + self.reqMovement, True )
            
        self._registerMapperEvents()

    def _loadSettings( self ):


Generated by  Doxygen 1.6.0   Back to index