AGW Logo

agw_title ImageBar

This class holds the background button bar on which the buttons float.

hierarchy Inheritance Diagram

Inheritance diagram for: ImageBar

Inheritance diagram of ImageBar


method_summary Methods Summary

__init__Default class constructor.
GetBarColourReturns the background button bar colour.
GetBitmapReturns the background button bar on which the buttons float.
GetPositionReturns the position of ImageBar, as a wx.Point.
GetSizeReturns the size of ImageBar, as a wx.Size.
SetBarColourSets the background button bar colour.
SetPositionSets the position of ImageBar.
SetSizeSets the size of ImageBar.

API Class API

class ImageBar(object)[source]

This class holds the background button bar on which the buttons float.



__init__(bitmap=None)[source]

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 of wx.Image.


GetBarColour()[source]

Returns the background button bar colour.



GetBitmap()[source]

Returns the background button bar on which the buttons float.



GetPosition()[source]

Returns the position of ImageBar, as a wx.Point.



GetSize()[source]

Returns the size of ImageBar, as a wx.Size.



SetBarColour(colour, xSize=None, ySize=None)[source]

Sets the background button bar colour.

Parameters:
  • colour – an instance of wx.Colour;
  • xSize – if not None, the new ImageBar width;
  • ySize – if not None, the new ImageBar height.


SetPosition(xpos, ypos)[source]

Sets the position of ImageBar.

Parameters:
  • xpos – the x position of the bar;
  • ypos – the y position of the bar.


SetSize(xSize, ySize)[source]

Sets the size of ImageBar.

Parameters:
  • xSize – the width of the bar, in pixels;
  • ySize – the height of the bar, in pixels.
Tree

Table Of Contents

Previous topic

zoombar

Next topic

ZoomBar