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

def mouseTrap::mainGui::CoordsGui::drawTriggers (   self  ) 

Draws the registered triggers.

Arguments:
- self: The main object pointer.

Definition at line 409 of file mainGui.py.

00409                             :
        """
        Draws the registered triggers.

        Arguments:
        - self: The main object pointer.
        """
        for trigger in self.triggers:

            color = "orange"

            if self.pointer[0] in xrange( trigger["X"] - 2, trigger["X"] + 2 ) \
                   and self.pointer[1] in xrange( trigger["Y"] - 2, trigger["Y"] + 2 ):
                color = "blue"

            self.drawPoint( trigger["X"], trigger["Y"], trigger["size"], color )
            
    def drawAreas( self ):


Generated by  Doxygen 1.6.0   Back to index