Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions python/screen_grab/screen_grab.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,8 @@ def get_desktop_pixmap(rect):
:rtype: :class:`~PySide.QtGui.QPixmap`
"""
desktop = QtGui.QApplication.desktop()
return QtGui.QPixmap.grabWindow(
desktop.winId(), rect.x(), rect.y(), rect.width(), rect.height()
)
return QtGui.QPixmap.grabWindow(long(desktop.winId()), rect.x(), rect.y(),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Black would make changes.
undefined name 'long'

rect.width(), rect.height())


# Backwards compatibility, as this used to be a module-level
Expand Down