- def __init__(self):
- from PyQt4 import QtGui
- self.app = QtGui.QApplication(sys.argv)
- print "Qt loaded"
-
- def error(self, message):
- from PyQt4 import QtGui
- QtGui.QMessageBox.critical(None, 'Fatal error', message)
-
- def setup(self, internalResolutions, externalResolutions):
- from qt_dialogue import PositionSelection
- return PositionSelection(internalResolutions, externalResolutions).run()
-
- @staticmethod
- def isAvailable():
- try:
- import PyQt4
- return True
- except ImportError:
- return False
+ def __init__(self):
+ from PyQt4 import QtGui
+ self.app = QtGui.QApplication(sys.argv)
+ print("Qt loaded")
+
+ def error(self, message):
+ from PyQt4 import QtGui
+ QtGui.QMessageBox.critical(None, 'Fatal error', message)
+
+ def setup(self, internalResolutions, externalResolutions, commonRes):
+ from qt_dialogue import PositionSelection
+ return PositionSelection(internalResolutions, externalResolutions, commonRes).run()
+
+ @staticmethod
+ def isAvailable():
+ try:
+ import PyQt4
+ return True
+ except ImportError:
+ return False