-except Exception, e:
- from zenity_dialogue import run as zenity_run
- qt_available = False
-
-def error(message):
- '''Displays a fatal error to the user'''
- QtGui.QMessageBox.critical(None, 'Fatal error', message)
-
-def setup(internalResolutions, externalResolutions):
- '''Returns a ScreenSetup instance, or None if the user canceled'''
- if qt_available:
+
+ def error(message):
+ '''Displays a fatal error to the user'''
+ QtGui.QMessageBox.critical(None, 'Fatal error', message)
+
+ def setup(internalResolutions, externalResolutions):
+ '''Returns a ScreenSetup instance, or None if the user canceled'''