Skip to content

Commit 2142b42

Browse files
[cuesubmit] Replace PySide2 with qtpy in CueSubmit files (#1640)
**Link the Issue(s) this Pull Request is related to.** #1633 **Summarize your change.** - Import statements updated to use `qtpy` instead of `PySide2` - Documentation in `README.md` updated to reflect the change - `setup.py` modified to include `qtpy` in the `install_requires` list instead of `PySide2` This change aims to provide a more flexible abstraction layer for different Qt bindings, improving compatibility and maintainability.
1 parent 00cd783 commit 2142b42

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cuesubmit/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ The OpenCue job submission GUI.
44

55
This is a Python-based QT app through which you can submit jobs to an OpenCue
66
deployment. It can run as a standalone application, or as a plugin in
7-
applications that support PySide2 integration, such as Autodesk's Maya or
7+
applications that support PySide/qtpy integration, such as Autodesk's Maya or
88
the Foundry's Nuke.

cuesubmit/plugins/maya/CueMayaSubmit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import maya.cmds as cmds
2121
import maya.utils
22-
from PySide2 import QtCore, QtWidgets
22+
from qtpy import QtCore, QtWidgets
2323

2424
# Path where all of the Cue Python libraries and their dependencies are installed.
2525
# The recommended workflow is for this to be a virtual environment, like:

cuesubmit/plugins/nuke/CueNukeSubmit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import argparse
1616
import logging
1717

18-
from PySide2 import QtCore, QtWidgets
18+
from qtpy import QtCore, QtWidgets
1919

2020
from cuesubmit import Constants
2121
from cuesubmit import JobTypes

cuesubmit/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
'future',
6262
'grpcio',
6363
'grpcio-tools',
64-
'PySide2',
64+
'qtpy',
6565
'PyYAML',
6666
]
6767
)

0 commit comments

Comments
 (0)