From 545d193b7b4eceb7c200e52a4fa809bd3a44f8d5 Mon Sep 17 00:00:00 2001 From: dalthviz Date: Mon, 21 Aug 2023 12:34:32 -0500 Subject: [PATCH] Add QtWidgets.QFileDialog.Options as alias of QtWidgets.QFileDialog.Option --- qtpy/QtWidgets.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qtpy/QtWidgets.py b/qtpy/QtWidgets.py index 6dbeec2e..ebb1d87b 100644 --- a/qtpy/QtWidgets.py +++ b/qtpy/QtWidgets.py @@ -71,6 +71,9 @@ def _directory_to_dir_(*args, **kwargs): QMenu.exec_ = lambda *args, **kwargs: possibly_static_exec(QMenu, *args, **kwargs) QLineEdit.getTextMargins = lambda self: (self.textMargins().left(), self.textMargins().top(), self.textMargins().right(), self.textMargins().bottom()) + # Map missing flags definitions + QFileDialog.Options = QFileDialog.Option + # Allow unscoped access for enums inside the QtWidgets module from .enums_compat import promote_enums promote_enums(QtWidgets)