[PyQt] Possible bug in file dialog on Mac OS X

Antonio Valentino antonio.valentino at tiscali.it
Sun Sep 6 08:24:11 BST 2009


Hi,
it seems that QFileDialog "fileMode" can be set only once on Mac OS
X.
All calls to QFileDialog.setFileDIalog (after the first one) are
ignored.

Mac OS X 10.5.8
Python 2.6.2
Qt 4,5,2
SIP 4.8.2
PyQt4 4.5.4


Attached a short example that reproduces the issue.
It works perfectly on Ubuntu 9.04.

# Run 1: first select a file

chooseFile1: 0
chooseFile2 (ExistingFile=1): 1
chooseFile3: 1
chooseDir1: 1
chooseDir2 (Directory=2): 1 # <=== should be 2
chooseDir3: 1

# Run 2: first select a directory

chooseDir1: 0
chooseDir2 (Directory=2): 2
chooseDir3: 2
chooseFile1: 2
chooseFile2 (ExistingFile=1): 2 # <=== should be 1
chooseFile3: 2


Can please anyone confirm?

Thanks

-- 
Antonio Valentino
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-dialog.py
Type: text/x-python
Size: 2121 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090906/035575b1/test-dialog-0001.py


More information about the PyQt mailing list