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

def mouseTrap::mainGui::CoordsGui::registerTrigger (   self,
  X,
  Y,
  size,
  callback,
  args,
  kwds 
)

Registers a new trigger.

Arguments:
- self: The main object pointer.
- X: The X possition.
- Y: The Y possition.
- size: The trigger point size.
- callback: The callback function
- *args: Extra arguments to pass to the callback function.
- **kwds: Extra keywords to pass to the callback function.

Definition at line 327 of file mainGui.py.

00327                                                                     :
        """
        Registers a new trigger.

        Arguments:
        - self: The main object pointer.
        - X: The X possition.
        - Y: The Y possition.
        - size: The trigger point size.
        - callback: The callback function
        - *args: Extra arguments to pass to the callback function.
        - **kwds: Extra keywords to pass to the callback function.
        """
        self.triggers.append( { "X" : X, "Y" : Y, "size" : size } )

        events.registerTrigger( {  "X" : X, "Y" : Y, "size" : size, "last" : 0,
                                   "callback" : callback, "args" : args, "kwds" : kwds })
    
    def drawRectangle( self, context, initX, initY, width, height, color ):


Generated by  Doxygen 1.6.0   Back to index