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

def mouseTrap::mainGui::CoordsGui::drawPoint (   self,
  X,
  Y,
  size,
  color = 'green' 
)

Draws the point

Arguments:
- self: The main object pointer.
- X: The X possition.
- Y: The Y possition
- size: The point diameter.
- color: A RGB color tuple. E.g (255,255,255)

Definition at line 469 of file mainGui.py.

00469                                                     :
        """
        Draws the point
        
        Arguments:
        - self: The main object pointer.
        - X: The X possition.
        - Y: The Y possition
        - size: The point diameter.
        - color: A RGB color tuple. E.g (255,255,255)
        """

        self.pointer = [ X, Y ]
        self.context.move_to( X, Y)
        self.context.arc(X, Y, size, 0, 2 * pi)
        
        if color == 'green':
            self.context.set_source_rgb(0.7, 0.8, 0.1)
        elif color == 'blue':
            self.context.set_source_rgb(0.5, 0.65, 12)
        else:
            self.context.set_source_rgb(10, 0.8, 0.1)
            
        self.context.fill_preserve()
        self.context.stroke()
        return True
        
    def drawLine( self, ctx, x1, y1, x2, y2, color ):


Generated by  Doxygen 1.6.0   Back to index