Let other python Qt scripts also fallback to Qt5
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user