Skip to content

Commit

Permalink
Fixed missing :, extra comment space
Browse files Browse the repository at this point in the history
  • Loading branch information
j0yu committed Jun 1, 2020
1 parent 94b20f7 commit 1268a34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/screen_grab/screen_grab.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,11 @@ def get_desktop_pixmap(rect):

if QT_MAJOR == 5:
screen = QtGui.QApplication.primaryScreen()
try
try:
pixmap = screen.grabWindow(desktop_id, *x_y_w_h)
except TypeError as error:
if "quintptr" in str(error):
ptr_type = getattr(__builtins__, "long", int) # Py3 safe long
ptr_type = getattr(__builtins__, "long", int) # Py3 safe long
pixmap = screen.grabWindow(ptr_type(desktop_id), *x_y_w_h)
else:
raise
Expand Down

0 comments on commit 1268a34

Please sign in to comment.