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

Fix the TypeError in Maya 2019, CentOS #95

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ababak
Copy link

@ababak ababak commented Sep 24, 2019

The error:

# Traceback (most recent call last):
#   File "/mnt/software/dev/install/app_store/tk-framework-widget/v0.2.7/python/thumbnail_widget/thumbnail_widget.py", line 138, in _on_camera_clicked
#     pm = self._on_screenshot()
#   File "/mnt/software/dev/install/app_store/tk-framework-widget/v0.2.7/python/thumbnail_widget/thumbnail_widget.py", line 230, in _on_screenshot
#     pm = screen_grab.screen_capture()
#   File "/mnt/software/dev/install/app_store/tk-framework-qtwidgets/v2.8.3/python/screen_grab/screen_grab.py", line 181, in screen_capture
#     pixmap = get_desktop_pixmap(tool.capture_rect)
#   File "/mnt/software/dev/install/app_store/tk-framework-qtwidgets/v2.8.3/python/screen_grab/screen_grab.py", line 326, in get_desktop_pixmap
#     rect.width(), rect.height())
# TypeError: # 'PySide2.QtGui.QPixmap.grabWindow' called with wrong argument types:
#   PySide2.QtGui.QPixmap.grabWindow(int, int, int, int, int)
# Supported signatures:
  PySide2.QtGui.QPixmap.grabWindow(quintptr, int = 0, int = 0, int = -1, int = -1)

# TypeError: # 'PySide2.QtGui.QPixmap.grabWindow' called with wrong argument types:
#   PySide2.QtGui.QPixmap.grabWindow(int, int, int, int, int)
# Supported signatures:
  PySide2.QtGui.QPixmap.grabWindow(quintptr, int = 0, int = 0, int = -1, int = -1)
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

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'

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

Successfully merging this pull request may close these issues.

1 participant