Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Maya Pyside import for compatibility across versions
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