asweigart/PyGetWindow

getActiveWindow()

surugh opened this issue · 1 comments

File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pygetwindow\__init__.py", line 71, in __str__ r = self._getWindowRect(self._hWnd) TypeError: _getWindowRect() takes 1 positional argument but 2 were given

r = self._getWindowRect()
works

I am getting this issue when I use getWindowsWithTitle('...'). I try to access the first element from the list returned but this error is shown. Any ideas as to why this happens?