X-Git-Url: https://git.ralfj.de/lilass.git/blobdiff_plain/a09b48d9abb6933687d17ea9d9e3a251f5eae65f..aaa0b27561726d84cc7c3fcfd16302c87dc628d7:/gui.py?ds=inline diff --git a/gui.py b/gui.py index a87b82f..560cb01 100644 --- a/gui.py +++ b/gui.py @@ -36,7 +36,7 @@ class QtFrontend: 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 @@ -78,7 +78,7 @@ class ZenityFrontend: # 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") @@ -103,7 +103,7 @@ def getFrontend(name = None): # frontend not found or not available raise Exception("Frontend %s not found or not available" % name) # auto-detect - for frontend in frontends.values(): + for frontend in list(frontends.values()): if frontend.isAvailable(): return frontend() # call constructor raise Exception("No frontend is available - this should not happen")