Skip to content

Commit

Permalink
Add toolbar to RotateCropDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Apr 10, 2024
1 parent c69d76b commit ba37534
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plotpy/tests/widgets/test_rotatecrop.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def imshow(data, title=None, hold=False):
def dialog_test(fname="brain.png"):
"""Test the rotate/crop dialog"""
array0, item = create_test_data(fname)
dlg = RotateCropDialog(None)
dlg = RotateCropDialog(None, toolbar=True)
dlg.transform.set_item(item)
if exec_dialog(dlg) == QW.QDialog.Accepted:
array1 = dlg.transform.get_result()
Expand Down
1 change: 1 addition & 0 deletions plotpy/widgets/rotatecrop.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def __init__(
self.add_buttons_to_layout(buttonhlayout, edit)

dialogvlayout = QW.QVBoxLayout()
dialogvlayout.addWidget(self.widget.plot_widget.toolbar)
dialogvlayout.addWidget(self.widget)
dialogvlayout.addLayout(buttonhlayout)
self.setLayout(dialogvlayout)
Expand Down

0 comments on commit ba37534

Please sign in to comment.