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

Maxwell Grady max.grady at gmail.com
Tue Aug 1 16:40:06 BST 2017

I believe this is the expected behavior for PyQt5 compared to PyQt4.



On Aug 1, 2017 11:30 AM, "Webster, Jeremy David" <jwebster at lanl.gov> wrote:

> 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
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170801/644b07bc/attachment.html>

More information about the PyQt mailing list