wx.lib.agw.zoombar.ImageBar¶
This class holds the background button bar on which the buttons float.
Class Hierarchy¶
Methods Summary¶
Default class constructor. |
|
Returns the background button bar colour. |
|
Returns the background button bar on which the buttons float. |
|
Returns the position of |
|
Returns the size of |
|
Sets the background button bar colour. |
|
Sets the position of |
|
Sets the size of |
Class API¶
- class ImageBar(object)¶
This class holds the background button bar on which the buttons float.
Methods¶
- __init__(self, bitmap=None)¶
Default class constructor.
- Parameters:
bitmap – if not
None
, the bitmap to use as a background button bar on which the buttons float. It should be an instance ofwx.Image
.
- GetBarColour(self)¶
Returns the background button bar colour.
- GetBitmap(self)¶
Returns the background button bar on which the buttons float.
- SetBarColour(self, colour, xSize=None, ySize=None)¶
Sets the background button bar colour.
- Parameters:
colour – an instance of
wx.Colour
;xSize – if not
None
, the newwx.ImageBar
width;ySize – if not
None
, the newwx.ImageBar
height.
- SetPosition(self, xpos, ypos)¶
Sets the position of
wx.ImageBar
.- Parameters:
xpos – the x position of the bar;
ypos – the y position of the bar.
- SetSize(self, xSize, ySize)¶
Sets the size of
wx.ImageBar
.- Parameters:
xSize – the width of the bar, in pixels;
ySize – the height of the bar, in pixels.