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

def mouseTrap::mainGui::CoordsGui::drawRectangle (   self,
  context,
  initX,
  initY,
  width,
  height,
  color 
)

Draws a rectangle in the DrawingArea.

Arguments:
- context: The Cairo Context.
- initX: The initial X possition.
- initY: The initial Y possition.
- width: The rectangle width.
- height: The rectangle height.
- color: An RGB color tuple. E.g: ( 255, 255, 255 )

Definition at line 345 of file mainGui.py.

00345                                                                           :
        """
        Draws a rectangle in the DrawingArea.

        Arguments:
        - context: The Cairo Context.
        - initX: The initial X possition.
        - initY: The initial Y possition.
        - width: The rectangle width.
        - height: The rectangle height.
        - color: An RGB color tuple. E.g: ( 255, 255, 255 )
        """
        
        r, g, b = color
        context.set_source_rgb(r, g, b)
        context.rectangle( initX, initY, width, height)
        context.stroke()
        
        return True
        
    def updateView( self ):


Generated by  Doxygen 1.6.0   Back to index