[PyQt] QFileDialog.getSaveFileName returns a tuple, but should return a string

Webster, Jeremy David jwebster at lanl.gov
Tue Aug 1 16:28:52 BST 2017

A minor inconvenience I think, but the documentation for QFileDialog.getSaveFileName shows it should return the filename as a string, but it returns a tuple that consists of the filename string and the filter

other related methods...

getOpenFileName has the same, "incorrect" behavior

getExistingDirectory behaves correctly
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170801/e7c5ffe2/attachment.html>

More information about the PyQt mailing list