def __init__(self):
from PyQt4 import QtGui
self.app = QtGui.QApplication(sys.argv)
- print "Qt loaded"
+ print("Qt loaded")
def error(self, message):
from PyQt4 import QtGui
# CLI frontend
class CLIFrontend:
def error(self, message):
- print >> sys.stderr, message
+ print(message, file=sys.stderr)
def setup(self, internalResolutions, externalResolutions):
raise Exception("Choosing the setup interactively is not supported with the CLI frontend")