Kalmat / PyWinCtl

Cross-Platform module to get info on and control windows on screen
Other
172 stars 19 forks source link

SyntaxError: annotated name '_updateScreens' can't be global #89

Closed ccc469 closed 9 hours ago

ccc469 commented 2 weeks ago

image

test.py

import pywinctl

print(pywinctl.getActiveWindow())

OS: Windows 10 (Windows Feature Experience Pack 120.2212.551.0)

I installed windows 10 on my virtual machine. Is it because of this problem?

Kalmat commented 1 week ago

Hi! Sorry for my late reply. These days are really busy.

PyWinCtl doesn't support Python 3.7 anymore because of some limitations related to annotations and typing. Futhermore, Python 3.7 reached its End Of Life (EOF) on 2019. If you update your python version to a more recent one (e.g. 3.10 or 3.11), it should work fine!!!

Please let me know if this solves your issue.

Thank you!

ccc469 commented 9 hours ago

Yes it works fine when I use a higher version of python