From 00f7e390d3c4bcf50a71c441378f38956737a4e1 Mon Sep 17 00:00:00 2001 From: Leonardo Robol Date: Mon, 13 Apr 2009 13:49:10 +0200 Subject: [PATCH] Fixed the QApplication() initialization.. --- songbook-editor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/songbook-editor.py b/songbook-editor.py index afdc250..1d6cae4 100755 --- a/songbook-editor.py +++ b/songbook-editor.py @@ -4,7 +4,7 @@ from PyQt4 import QtGui, QtCore from interface import * from song import * from latex_manager import * -import re +import re, sys class interface(QtGui.QMainWindow): def __init__(self, lm, parent=None): @@ -177,7 +177,7 @@ class interface(QtGui.QMainWindow): if __name__ == "__main__": - app = QtGui.QApplication(None) + app = QtGui.QApplication(sys.argv) lm = latex_manager() widget = interface(lm) widget.show() -- 2.1.4