Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
importing the right Qstring for Python 3 on windows
This is a check to make sure the sip and the Qstrings play nicely in Windows,
where the PySide is using the new Python API (Python 3)
This could be easily removed when we move to Python 3
if == 'nt':
import sip
sip.setapi('QString', 2)
sip.setapi('QVariant', 2)
from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString,
pyqtSignature, pyqtProperty)
from PyQt4.QtCore import *
from PyQt4 import QtGui, QtCore, uic
from PyQt4.QtCore import Qt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.