fix for python template

tom tmassimi at
Mon Apr 10 14:22:06 UTC 2006

Hi all, 

I saw that the python application generated by the kdevelop wizard
is unable to use the dialog to open a file.

Here a (simple) fix to the tempalte against the current svn revision.

--- languages/python/app_templates/pyqt/  (revision 528198)
+++ languages/python/app_templates/pyqt/  (working copy)
@@ -132,7 +132,7 @@

     def slotOpenFile(self):
-        fileName = str(QFileDialog.getOpenFileName(None, None, self))
+        fileName = str(QFileDialog.getOpenFileName("", "", self))
         print fileName
         if not fileName=="":

More information about the KDevelop-devel mailing list