<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
On Thu, 2010-07-01 at 03:17 +0200, Robin Wittler wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
take a look at
<A HREF="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4">http://www.riverbankcomputing.co.uk/static/Docs/PyQt4</A>
/html/qapplication.html#QApplication-2
QApplication.__init__ (self, list-of-str argv, bool GUIenabled)
Constructs an application object with argc command line arguments in
argv. If GUIenabled is true, a GUI application is constructed, otherwise
a non-GUI (console) application is created.
</PRE>
</BLOCKQUOTE>
<BR>
Thanks for that.<BR>
<BR>
The only change I made was to end up using QtCore.QCoreApplication(sys.argv) instead as it implies a console application and doesn't require importing QtGui.<BR>
<BR>
<BR>
<BR>
Cheers<BR>
<BR>
Steve<BR>
<BR>
<BR>
</BODY>
</HTML>