File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def dialog_test(fname):
5454 dlg .toolbar .addWidget (rot_point_btn )
5555
5656 dlg .transform .set_item (item )
57- if exec_dialog (dlg ) == dlg .Accepted :
57+ if exec_dialog (dlg ) == QW . QDialog .Accepted :
5858 array1 = dlg .transform .get_result ()
5959 dlg1 = imshow (array0 , title = "array0" )
6060 dlg2 = imshow (array1 , title = "array1" )
Original file line number Diff line number Diff line change 1212import numpy as np
1313from guidata .env import execenv
1414from guidata .qthelpers import exec_dialog , qt_app_context
15+ from qtpy import QtWidgets as QW
1516
1617from plotpy import io
1718from plotpy .builder import make
@@ -69,7 +70,7 @@ def dialog_test(fname="brain.png"):
6970 array0 , item = create_test_data (fname )
7071 dlg = RotateCropDialog (None )
7172 dlg .transform .set_item (item )
72- if exec_dialog (dlg ) == dlg .Accepted :
73+ if exec_dialog (dlg ) == QW . QDialog .Accepted :
7374 array1 = dlg .transform .get_result ()
7475 if array0 .shape == array1 .shape :
7576 assert (array1 == array0 ).all ()
You can’t perform that action at this time.
0 commit comments