fix for python template

tom tmassimi at gmail.com
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.
Bye
Tom

===================================================================
--- languages/python/app_templates/pyqt/app.py  (revision 528198)
+++ languages/python/app_templates/pyqt/app.py  (working copy)
@@ -132,7 +132,7 @@
         ed.show()

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





More information about the KDevelop-devel mailing list