From d82f8dada25517aa4b64a29a29b00ed50466bb45 Mon Sep 17 00:00:00 2001 From: tangkong Date: Fri, 29 Sep 2023 16:04:03 -0700 Subject: [PATCH] MNT: add open-welcome-tab to file actions list, closes #201 --- atef/ui/config_window.ui | 7 +++++++ atef/widgets/config/window.py | 2 ++ 2 files changed, 9 insertions(+) diff --git a/atef/ui/config_window.ui b/atef/ui/config_window.ui index 39427de7..c14c9aea 100644 --- a/atef/ui/config_window.ui +++ b/atef/ui/config_window.ui @@ -37,6 +37,8 @@ File + + @@ -120,6 +122,11 @@ Find / Replace + + + Welcome Tab + + diff --git a/atef/widgets/config/window.py b/atef/widgets/config/window.py index 771317c5..f1ae02a5 100644 --- a/atef/widgets/config/window.py +++ b/atef/widgets/config/window.py @@ -58,6 +58,7 @@ class Window(DesignerDisplay, QMainWindow): user_filename_ext = 'json' tab_widget: QTabWidget + action_welcome_tab: QAction action_new_file: QAction action_open_file: QAction action_save: QAction @@ -72,6 +73,7 @@ class Window(DesignerDisplay, QMainWindow): def __init__(self, *args, show_welcome: bool = True, **kwargs): super().__init__(*args, **kwargs) self.setWindowTitle('atef config') + self.action_welcome_tab.triggered.connect(self.welcome_user) self.action_new_file.triggered.connect(self.new_file) self.action_open_file.triggered.connect(self.open_file) self.action_save.triggered.connect(self.save)