[PyQt] Bug in QFileDialog.getSaveFileName

Phil Thompson phil at riverbankcomputing.com
Tue Mar 1 14:19:49 GMT 2011


On Tue, 1 Mar 2011 15:02:57 +0100, Martin Teichmann
<martin.teichmann at mbi-berlin.de> wrote:
> Hello Phil, Hello List,
> 
> Just a little bug report:
> 
> the following small script raises a TypeError, unexpectedly so.
> Tested under Windows PyQt4 Version 4.8.3.
> 
> import sip
> sip.setapi("QString", 2) # this line important
> from PyQt4 import QtGui
> app = QtGui.QApplication([])
> QtGui.QFileDialog.getSaveFileName(None, "", "", "", "")
> 
> Greetings
> 
> Martin

See...

http://www.riverbankcomputing.com/static/Docs/PyQt4/html/python_v3.html#qfiledialog

Phil


More information about the PyQt mailing list