ButtonWrapper
Wrap a windows Button control
The ButtonWrapper class is accessible via the pywinauto.controls.win32_controls module.
Attributes
Methods
f FriendlyClassName(self) ...
Return the friendly class name of the button
Windows controls with the class "Button" can look like different controls based on their style. They can look like the following controls:
- Buttons, this method returns "Button"
- CheckBoxes, this method returns "CheckBox"
- RadioButtons, this method returns "RadioButton"
- GroupBoxes, this method returns "GroupBox"
f GetCheckState(self) ...
Return the check state of the checkbox
The check state is represented by an integer 0 - unchecked 1 - checked 2 - indeterminate
The following constants are defined in the win32defines module BST_UNCHECKED = 0 BST_CHECKED = 1 BST_INDETERMINATE = 2
See the source for more information.