You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a class method in UIAElementInfo that returns an instance of the active element.
However, when obtaining the active element using UIAWrapper.is_active, it uses the method from uia_defines.IUIA, resulting in a redundant implementation.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
There's a class method in
UIAElementInfo
that returns an instance of the active element.However, when obtaining the active element using
UIAWrapper.is_active
, it uses the method fromuia_defines.IUIA
, resulting in a redundant implementation.pywinauto/pywinauto/windows/uia_element_info.py
Lines 557 to 561 in bf7f789
pywinauto/pywinauto/controls/uiawrapper.py
Lines 734 to 738 in bf7f789
This implementation could be condensed into a single line, like so:
Beta Was this translation helpful? Give feedback.
All reactions