controls.uiawrapper 控件模块
- uiawrapper.LazyProperty
- uiawrapper.UIAWrapper
-
- UIAWrapper.automation_id
- UIAWrapper.can_select_multiple
- UIAWrapper.children_texts
- UIAWrapper.close
- UIAWrapper.collapse
- UIAWrapper.expand
- UIAWrapper.friendly_class_name
- UIAWrapper.get_expand_state
- UIAWrapper.get_selection
- UIAWrapper.get_show_state
- UIAWrapper.has_keyboard_focus
- UIAWrapper.invoke
- UIAWrapper.is_active
- UIAWrapper.is_collapsed
- UIAWrapper.is_dialog
- UIAWrapper.is_expanded
- UIAWrapper.is_keyboard_focusable
- UIAWrapper.is_maximized
- UIAWrapper.is_minimized
- UIAWrapper.is_normal
- UIAWrapper.is_selected
- UIAWrapper.is_selection_required
- UIAWrapper.legacy_properties
- UIAWrapper.maximize
- UIAWrapper.menu_select
- UIAWrapper.minimize
- UIAWrapper.restore
- UIAWrapper.scroll
- UIAWrapper.select
- UIAWrapper.selected_item_index
- UIAWrapper.set_focus
- UIAWrapper.writable_props
- uiawrapper.UiaMeta
UI 自动化元素的基本包装类
uiawrapper.LazyProperty
class pywinauto.controls.uiawrapper.LazyProperty(fget)
Bases: object
对象属性的延迟计算。
该属性应表示不可变的数据,因为它会替换自身。http://stackoverflow.com/a/6849299/1260742 。
uiawrapper.UIAWrapper
class pywinauto.controls.uiawrapper.UIAWrapper(element_info)
用户界面自动化 (UIA) 控件的默认包装器。
所有其他 UIA 包装器都派生自此。
此类包含用于处理 Windows 的基础 UIA 功能的许多功能。
大多数方法适用于每个元素类型。例如,click()
。
UIAWrapper.automation_id
pywinauto.controls.uiawrapper.UIAWrapper.automation_id()
- 返回控件的自动化 ID
UIAWrapper.can_select_multiple
pywinauto.controls.uiawrapper.UIAWrapper.can_select_multiple()
- SelectionProvider 模式的 CanSelectMultiple 的接口
指示 UI 自动化提供程序是否允许同时选择多个子元素。
UIAWrapper.children_texts
pywinauto.controls.uiawrapper.UIAWrapper.children_texts()
- 获取控件子项的文本
UIAWrapper.close
pywinauto.controls.uiawrapper.UIAWrapper.close()
- 关闭窗口
只有支持 Window 模式的控件才会回应。如果没有(菜单阴影、工具提示,…),请尝试发送“Esc”键
UIAWrapper.collapse
pywinauto.controls.uiawrapper.UIAWrapper.collapse()
- 显示控件的所有子节点、控件或内容
ExpandCollapse 控件模式的 Collapse 方法的接口。
UIAWrapper.expand
pywinauto.controls.uiawrapper.UIAWrapper.expand()
- 显示控件的所有子节点、控件或内容
ExpandCollapse 控件模式的 Expand 方法的接口。
UIAWrapper.friendly_class_name
pywinauto.controls