Let other python Qt scripts also fallback to Qt5

This commit is contained in:
Arne Schwabe
2017-09-13 14:18:17 +02:00
parent 1b370076b6
commit 4c5f0ca83c
2 changed files with 9 additions and 3 deletions
+5 -1
View File
@@ -2,7 +2,11 @@
# -*- coding: utf-8 -*-
import sys
from PyQt4 import Qt, QtCore, QtGui
try:
from PyQt5 import Qt, QtGui, QtCore
except:
from PyQt4 import Qt, QtGui, QtCore
import glob
app = Qt.QApplication(sys.argv)
+4 -2
View File
@@ -1,7 +1,9 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from PyQt4 import Qt, QtGui
try:
from PyQt5 import Qt, QtGui
except:
from PyQt4 import Qt, QtGui
menu = ["radio_setup", "model_select", "model_settings", "model_checklist", "files", "version"]