This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2018 Shotgun Software Inc. | |
# | |
# CONFIDENTIAL AND PROPRIETARY | |
# | |
""" | |
This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit | |
Source Code License included in this distribution package. See LICENSE. | |
By accessing, using, copying or modifying this work you indicate your | |
agreement to the Shotgun Pipeline Toolkit Source Code License. All rights | |
not expressly granted therein are reserved by Shotgun Software Inc. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PySide2 import QtCore, QtWidgets, QtGui | |
import screen_grab | |
class Thumbnail(QtWidgets.QLabel): | |
""" | |
A specialized, custom widget that either displays a static square thumbnail or a thumbnail that can be captured using screen capture and other methods. """ | |
screen_grabbed = QtCore.Signal(object) | |