Skip to content

Instantly share code, notes, and snippets.

@lingyunfx
lingyunfx / screen_grab.py
Last active September 24, 2025 15:03
ShotGrid截图依赖
# 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.
@lingyunfx
lingyunfx / thumbnail.py
Created September 24, 2025 14:56
ShotGrid截图控件
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)