PyCToolBarCtrl.TBUTTON tuple

TBUTTON tuple(iBitmap, idCommand, fsState, fsStyle, userob, iString)

Describes a TBUTTON tuple, used by the PyCToolBarCtrl AddButtons method

Parameters

iBitmap : int

Zero-based index of button image

idCommand : int

Command to be sent when button pressed

fsState : int

Button state. Can be any of the TBSTATE values defined in win32con

fsStyle : int

Button style. Can be any of the TBSTYLE values defined in win32con

userob : object

Arbitrary Python object

iString : int

Zero-based index of button label string

Comments

Userob is any Python object at all, but no reference count is kept, so you must ensure the object remains referenced throughout.