We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1552e6 commit ae7d792Copy full SHA for ae7d792
plotpy/tests/features/test_colormap_manager.py
@@ -14,7 +14,7 @@
14
import qtpy.QtCore as QC
15
import qtpy.QtGui as QG
16
from guidata.env import execenv
17
-from guidata.qthelpers import qt_app_context
+from guidata.qthelpers import exec_dialog, qt_app_context
18
19
from plotpy.mathutils.colormaps import ALL_COLORMAPS
20
from plotpy.widgets.colormap.manager import ColorMapManager
@@ -34,7 +34,7 @@ def test_colormap_manager() -> None:
34
dlg.get_colormap()
35
dlg.colormap_editor.update_colormap_widget()
36
dlg.colormap_editor.update_current_dataset()
37
- result = dlg.exec()
+ result = exec_dialog(dlg)
38
execenv.print("Dialog result:", result)
39
cmap = dlg.get_colormap()
40
execenv.print("Selected colormap:", None if cmap is None else cmap.name)
0 commit comments