pyWinAuto: pywinauto.controls.common_controls.ToolbarWrapper -- Class that wraps Windows Toolbar common control

ToolbarWrapper

Class that wraps Windows Toolbar common control


Attributes

a handle

None

a windowclasses

['ToolbarWindow32', 'WindowsForms\\d*\\.ToolbarWindow32\\..*']

a friendlyclassname

'Toolbar'

Methods

f __eq__(self, other) ...

Returns True if the handles of both controls are the same

f __init__(self, hwnd) ...

Initialise the instance

f ButtonCount(self) ...

Return the number of buttons on the ToolBar

f Button(self, button_index) ...

Return the button at index button_index

f GetButton(self, button_index) ...

Return information on the Toolbar button

f Texts(self) ...

Return the texts of the Toolbar

f GetButtonRect(self, button_index) ...

Get the rectangle of a button on the toolbar

f GetToolTipsControl(self) ...

Return the tooltip control associated with this control

f PressButton(self, button_identifier) ...

Find where the button is and click it

See the source for more information.