 
       wx.lib.floatcanvas.FCObjects.DrawObject¶
  wx.lib.floatcanvas.FCObjects.DrawObject¶This is the base class for all the objects that can be drawn.
One must subclass from this (and an assortment of Mixins) to create
a new DrawObject, see for example Circle.
 Methods Summary¶
 Methods Summary¶| __init__ | Default class constructor. | 
| Bind | Bind an event to the DrawObject | 
| Hide | Hide the object. | 
| PutInBackground | Put the object in the background. | 
| PutInForeground | Put the object in the foreground. | 
| SetBrush | Set the brush for this DrawObject | 
| SetColor | Set the Color - this method is overridden in the subclasses | 
| SetFillColor | Set the FillColor - this method is overridden in the subclasses | 
| SetFillStyle | Set the FillStyle - this method is overridden in the subclasses | 
| SetHitBrush | Set the brush used for hit test, do not call directly. | 
| SetHitPen | Set the pen used for hit test, do not call directly. | 
| SetLineColor | Set the LineColor - this method is overridden in the subclasses | 
| SetLineStyle | Set the LineStyle - this method is overridden in the subclasses | 
| SetLineWidth | Set the LineWidth | 
| SetPen | Set the Pen for this DrawObject | 
| Show | Show the object. | 
| UnBindAll | Unbind all events | 
 Class API¶
 Class API¶DrawObject¶This is the base class for all the objects that can be drawn.
One must subclass from this (and an assortment of Mixins) to create
a new DrawObject, see for example Circle.
__init__(self, InForeground  = False, IsVisible = True)¶Default class constructor.
| Parameters: | 
 | 
|---|
Bind(self, Event, CallBackFun)¶Bind an event to the DrawObject
| Parameters: | 
 | 
|---|
Hide(self)¶Hide the object.
PutInBackground(self)¶Put the object in the background.
PutInForeground(self)¶Put the object in the foreground.
SetBrush(self, FillColor, FillStyle)¶Set the brush for this DrawObject
| Parameters: | 
 | 
|---|
SetColor(self, Color)¶Set the Color - this method is overridden in the subclasses
| Parameters: | Color – use one of the following values any valid entry from wx.ColourDatabase
 | 
|---|
SetFillColor(self, FillColor)¶Set the FillColor - this method is overridden in the subclasses
| Parameters: | FillColor – see SetColorfor valid values | 
|---|
SetFillStyle(self, FillStyle)¶Set the FillStyle - this method is overridden in the subclasses
| Parameters: | FillStyle (string) – following is a list of valid values: 
 | 
|---|
SetHitBrush(self, HitColor)¶Set the brush used for hit test, do not call directly.
| Parameters: | HitColor – see SetColor | 
|---|
SetHitPen(self, HitColor, LineWidth)¶Set the pen used for hit test, do not call directly.
| Parameters: | 
 | 
|---|
SetLineColor(self, LineColor)¶Set the LineColor - this method is overridden in the subclasses
| Parameters: | LineColor – see SetColorfor valid values | 
|---|
SetLineStyle(self, LineStyle)¶Set the LineStyle - this method is overridden in the subclasses
| Parameters: | LineStyle – Use one of the following values or None:
 | 
|---|
SetLineWidth(self, LineWidth)¶Set the LineWidth
| Parameters: | LineWidth (integer) – sets the line width in pixel | 
|---|
SetPen(self, LineColor, LineStyle, LineWidth)¶Set the Pen for this DrawObject
| Parameters: | 
 | 
|---|
Show(self)¶Show the object.
UnBindAll(self)¶Unbind all events
Note
Currently only removes one from each list