try: import qt.core as QtGui except ImportError: try: from PyQt5 import Qt as QtGui except ImportError: from PyQt4 import QtGui