From 9dda37216be83b4c96bbdf0f1e8775154fb75eeb Mon Sep 17 00:00:00 2001
From: Eric Prestat <eric.prestat@gmail.com>
Date: Tue, 3 May 2022 16:52:28 +0100
Subject: [PATCH] Fix import tools error when running hyperspy test suite

---
 hyperspy_gui_traitsui/tools.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/hyperspy_gui_traitsui/tools.py b/hyperspy_gui_traitsui/tools.py
index 6c8a3aa..66971b7 100644
--- a/hyperspy_gui_traitsui/tools.py
+++ b/hyperspy_gui_traitsui/tools.py
@@ -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
@@ -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],