pywinauto / SWAPY

not maintained any more (will be replaced by py_inspect)
https://github.com/pywinauto/py_inspect
271 stars 66 forks source link

Is there some way to change tabwidget #89

Closed sincerefly closed 7 years ago

sincerefly commented 7 years ago

There is software written by QT, on the top of the software, there is a tab widget, I'm not find SWAPY have options to change the tab, And is there something way to change the tab, thank you

moden-py commented 7 years ago

SWAPY not intended to change any window's content. If your software opensource, you probably may change all in the sources. Then compile the changes.

vasily-v-ryabov commented 7 years ago

Hi @sincerefly if you want to switch tab (probably not change) for Qt app, you must use Application(backend="uia"). Unfortunately SWAPY doesn't support "uia" backend. So you have to write some code. For GUI object inspection please use Inspect.exe as a spy tool (can be found here on GitHub) and read the Getting Started Guide for pywinauto.

Examples for pywinauto contain wireshark.py (WireShark is a Qt5 app so this example should be also a good guidance for you though there is no tab switching as I remember).

sincerefly commented 7 years ago

Thanks @moden-py @vasily-v-ryabov