Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window.__str__ broken, cant print window #28

Open
laundmo opened this issue Jun 16, 2020 · 1 comment
Open

Window.__str__ broken, cant print window #28

laundmo opened this issue Jun 16, 2020 · 1 comment

Comments

@laundmo
Copy link

laundmo commented Jun 16, 2020

Traceback (most recent call last):
  File "<stdin>", line 16, in <module>
  File "<stdin>", line 11, in sortwindowlocation
  File "c:\python38\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
@ealmloff
Copy link
Contributor

looking around the source code it looks like this is easily fixed by removing self._hWnd:
#33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants