Table Of Contents

Previous topic

__ToggleMixin

Next topic

GenBitmapTextButton

This Page

phoenix_title GenBitmapButton

A generic bitmap button.


class_hierarchy Inheritance Diagram

Inheritance diagram for class GenBitmapButton

Inheritance diagram of GenBitmapButton


super_classes Known Superclasses

lib.buttons.GenButton


method_summary Methods Summary

__init__  
DrawLabel  
GetBitmapDisabled  
GetBitmapFocus  
GetBitmapLabel  
GetBitmapSelected  
SetBitmapDisabled Set bitmap to display when the button is disabled
SetBitmapFocus Set bitmap to display when the button has the focus
SetBitmapLabel Set the bitmap to display normally.
SetBitmapSelected Set bitmap to display when the button is selected (pressed down)

api Class API



class GenBitmapButton(GenButton)

A generic bitmap button.


Methods



__init__(self, parent, id=-1, bitmap=NullBitmap, pos = DefaultPosition, size = DefaultSize, style = 0, validator = DefaultValidator, name = "genbutton")


DrawLabel(self, dc, width, height, dx=0, dy=0)


GetBitmapDisabled(self)


GetBitmapFocus(self)


GetBitmapLabel(self)


GetBitmapSelected(self)


SetBitmapDisabled(self, bitmap)

Set bitmap to display when the button is disabled



SetBitmapFocus(self, bitmap)

Set bitmap to display when the button has the focus



SetBitmapLabel(self, bitmap, createOthers=True)

Set the bitmap to display normally. This is the only one that is required. If createOthers is True, then the other bitmaps will be generated on the fly. Currently, only the disabled bitmap is generated.



SetBitmapSelected(self, bitmap)

Set bitmap to display when the button is selected (pressed down)