ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
# pywinauto.backend 后端组件存储(指向平台特定内容的链接) [TOC] ## *class* `pywinauto.backend.BackEnd`(*name*, *element\_info\_class*, *generic\_wrapper\_class*) 最小的后端描述(名称和2个必需的基类) ## *class* `pywinauto.backend.BackendsRegistry` 用于可用后端列表的注册表模式类 > `element_class` 返回活动后端的 [`element_info.ElementInfo`](https://pywinauto.readthedocs.io/en/latest/code/pywinauto.element_info.html#pywinauto.element_info.ElementInfo "pywinauto.element_info.ElementInfo")子类 > `name` 活动后端的名称 > `wrapper_class` BaseWrapper的活动后端的子类 > `pywinauto.backend.activate`(*name*) 按名称设置活动后端 **name**的可能值是“win32”,“uia”或 [`register()`](https://pywinauto.readthedocs.io/en/latest/code/pywinauto.backend.html#pywinauto.backend.register "pywinauto.backend.register")函数注册的其他名称. > `pywinauto.backend.element_class`() Return [`element_info.ElementInfo`](https://pywinauto.readthedocs.io/en/latest/code/pywinauto.element_info.html#pywinauto.element_info.ElementInfo "pywinauto.element_info.ElementInfo")‘s subclass of the active backend > `pywinauto.backend.name`() Return name of the active backend > `pywinauto.backend.register`(*name*, *element\_info\_class*, *generic\_wrapper\_class*) Register a new backend > `pywinauto.backend.wrapper_class`() Return BaseWrapper’s subclass of the active backend