Maya Pyside import for compatibility across versions
try: | |
from PySide2 import QtCore, QtGui, QtWidgets | |
from shiboken2 import wrapInstance | |
except ImportError: | |
from PySide import QtCore, QtGui | |
from PySide import QtGui as QtWidgets | |
from shiboken import wrapInstance |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment