Component: BitmapCanvas


Required Attributes

NameDefault value
nameNone

Optional Attributes

NameDefault value
backgroundColorNone
commandNone
enabled1
fontNone
foregroundColorNone
id-1
position[-1, -1]
size[-1, -1]
toolTip''
userdata''
visible1

Events:

gainFocus
loseFocus
mouseContextDoubleClick
mouseContextDown
mouseContextUp
mouseDoubleClick
mouseDown
mouseEnter
mouseLeave
mouseMiddleDoubleClick
mouseMiddleDown
mouseMiddleUp
mouseMove
mouseUp
timer

Methods:

methodargsdoc stringcomments
clear(self)  
drawBitmap(self, aBitmap, x=0, y=0, transparency=1)  
drawBitmapScaled(self, aBitmap, x, y, size, transparency=1)  
drawEllipse(self, x, y, width, height)  
drawLine(self, x1, y1, x2, y2)  
drawLineList(self, lines, pens=None)  
drawPoint(self, x, y)  
drawPointList(self, points, pens=None)  
drawRect(self, x, y, width, height)  
drawRectangle(self, x, y, width, height)  
drawRectangleList(self, rects, pens=None, brushes=None) # KEA 2003-03-14 # need to add other DrawXXXList methods once we are # requiring wxPython 2.4.0.6 or higher
drawRotatedText(self, aString, x, y, angle)  
drawText(self, aString, x, y)  
getBitmap(self)  
getId(self) # KEA 2004-04-10 # getId should go away # components should just use # self.id during and after initialization
line(self, x1, y1, x2, y2)  
plot(self, x, y)  
refresh(self)  
resizeBuffer(self, size)  
setCopyMode(self, copyMode)  
setFillColor(self, aColor)  
setFillMode(self, fillStyle)  
setFocus(self, aBoolean=1)  

SourceForge Logo