Skip to content

Commit

Permalink
Merge pull request #33 from Demonthos/patch-1
Browse files Browse the repository at this point in the history
Fix __str__(self)
  • Loading branch information
asweigart committed Oct 4, 2020
2 parents 3728541 + 9b028d2 commit 7963bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pygetwindow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _getWindowRect(self):
raise NotImplementedError

def __str__(self):
r = self._getWindowRect(self._hWnd)
r = self._getWindowRect()
width = r.right - r.left
height = r.bottom - r.top
return '<%s left="%s", top="%s", width="%s", height="%s", title="%s">' % (
Expand Down

0 comments on commit 7963bec

Please sign in to comment.