[PyQt] posible PyQt 5.12 bug?
Phil Thompson
phil at riverbankcomputing.com
Mon Feb 11 09:45:42 GMT 2019
On 11 Feb 2019, at 7:43 am, José Antonio Fernández Fernández <aullasistemas at gmail.com> wrote:
>
> Hi all. I've updated from PyQt 5.11.3 to 5.12, and this simple code does not run (QFileDialog is not displayed). It can be a bug ?. regards
>
> from PyQt5.QtWidgets import QFileDialog
> parent = QtWidgets.QApplication.activeModalWidget()
> base_dir = "/home/foo"
> filter = "*.*"
> QFileDialog.getSaveFileName(parent,"caption example",base_dir , filter)
Works for me - once you fix the two bugs in the above.
Phil
More information about the PyQt
mailing list