Skip to content

Commit

Permalink
Fix import tools error when running hyperspy test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpre committed May 3, 2022
1 parent 7996171 commit 9dda372
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hyperspy_gui_traitsui/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import traitsui
import traitsui.api as tu
from traitsui.file_dialog import FileEditor
from traitsui.menu import OKButton, CancelButton, OKCancelButtons

from hyperspy_gui_traitsui.axes import get_navigation_sliders_group
Expand Down Expand Up @@ -312,7 +311,7 @@ def smooth_butterworth(obj, **kwargs):
@add_display_arg
def load(obj, **kwargs):
view = tu.View(
tu.Group(tu.Item('filename', editor=FileEditor(dialog_style='open')),
tu.Group(tu.Item('filename', editor=tu.FileEditor(dialog_style='open')),
"lazy"),
kind='livemodal',
buttons=[OKButton, CancelButton],
Expand Down

0 comments on commit 9dda372

Please sign in to comment.