This class holds all the information about a single indicator inside RulerCtrl.
You should not call this class directly. Use:
ruler.AddIndicator(id, value)
to add an indicator to your RulerCtrl.
__init__ | Default class constructor. |
Draw | Actually draws the indicator. |
GetId | Returns the indicator id. |
GetImageSize | Returns the indicator bitmap size. |
GetPosition | Returns the position at which we should draw the indicator bitmap. |
GetRect | Returns the indicator client rectangle. |
GetValue | Returns the indicator value. |
RotateImage | Rotates the default indicator bitmap. |
SetColour | Sets the indicator colour. |
SetValue | Sets the indicator value. |
This class holds all the information about a single indicator inside RulerCtrl.
You should not call this class directly. Use:
ruler.AddIndicator(id, value)
to add an indicator to your RulerCtrl.
Default class constructor.
Parameters: |
|
---|
Rotates the default indicator bitmap.
Parameters: | img – if not None, the indicator image. |
---|
Sets the indicator colour.
Parameters: | colour – the new indicator colour, an instance of wx.Colour. |
---|
Note
Requires PIL (Python Imaging Library), which can be downloaded from http://www.pythonware.com/products/pil/