Home | Trees | Index | Help |
|
---|
Module wxmpl :: Class Painter |
|
DestructableViewMixin
--+
|
Painter
CrosshairPainter
,
LocationPainter
,
RubberbandPainter
Method Summary | |
---|---|
Create a new painter attached to the wxPython window view . | |
Draws a previously processed value on this painter's
window. | |
Clear the painter's current value from the screen and the painter itself. | |
Template method that clears a previously processed value
that was previously drawn, using the wxPython device context
dc . | |
Template method that draws a previously processed value
using the wxPython device context dc . | |
Template method that processes the value tuple passed to
the set() method, returning the processed version. | |
Redraw this painter's current value. | |
Update this painter's value and then draw it. | |
Enable or disable this painter. | |
Inherited from DestructableViewMixin | |
Sets this object's view attribute to
None . |
Class Variable Summary | |
---|---|
wxBrushPtr |
BRUSH : wx.Brush to use (defaults to
wx.TRANSPARENT_BRUSH ) |
wxFontPtr |
FONT : wx.Font to use (defaults to
wx.NORMAL_FONT ) |
int |
FUNCTION : Logical function to use (defaults to wx.COPY ) |
wxPenPtr |
PEN : wx.Pen to use (defaults to wx.BLACK_PEN ) |
wxColourPtr |
TEXT_BACKGROUND : wx.Colour to use (defaults to wx.WHITE ) |
wxColourPtr |
TEXT_FOREGROUND : wx.Colour to use (defaults to wx.BLACK ) |
Method Details |
---|
__init__(self,
view,
enabled=True)
Create a new painter attached to the wxPython window
|
_paint(self, value, dc)Draws a previously processedvalue on this painter's
window.
|
clear(self, dc=None)Clear the painter's current value from the screen and the painter itself. |
clearValue(self, dc, value)Template method that clears a previously processedvalue that was previously drawn, using the wxPython device
context dc . This DC has already been configured, so calls
to BeginDrawing() and EndDrawing() may not be
made.
|
drawValue(self, dc, value)Template method that draws a previously processedvalue
using the wxPython device context dc . This DC has already
been configured, so calls to BeginDrawing() and
EndDrawing() may not be made.
|
formatValue(self, value)Template method that processes thevalue tuple passed
to the set() method, returning the processed version.
|
redraw(self, dc=None)Redraw this painter's current value. |
set(self, *value)Update this painter's value and then draw it. Values may not beNone , which is used internally to represent the absence of
a current value.
|
setEnabled(self, state)Enable or disable this painter. Disabled painters do not draw their values and calls toset() have no effect on them.
|
Class Variable Details |
---|
BRUSHwx.Brush to use (defaults to
wx.TRANSPARENT_BRUSH )
|
FONTwx.Font to use (defaults to
wx.NORMAL_FONT )
|
FUNCTIONLogical function to use (defaults towx.COPY )
|
PENwx.Pen to use (defaults to wx.BLACK_PEN )
|
TEXT_BACKGROUNDwx.Colour to use (defaults to wx.WHITE )
|
TEXT_FOREGROUNDwx.Colour to use (defaults to wx.BLACK )
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Aug 28 13:47:49 2006 | http://epydoc.sf.net |