fix for python template

Matt Rogers mattr at kde.org
Tue Apr 11 02:14:13 UTC 2006


On Monday 10 April 2006 07:23, tom wrote:
> 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)
>
>

Hi,

I committed your patch.

Thanks!
--
Matt




More information about the KDevelop-devel mailing list