From 38115004ebc092856dee955462919b95b3de6a70 Mon Sep 17 00:00:00 2001 From: lucas-wilkins Date: Tue, 2 Jul 2024 09:51:04 +0100 Subject: [PATCH 1/2] Changed to open in browser --- src/sas/qtgui/MainWindow/GuiManager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sas/qtgui/MainWindow/GuiManager.py b/src/sas/qtgui/MainWindow/GuiManager.py index 85c53c60c6..4889298764 100644 --- a/src/sas/qtgui/MainWindow/GuiManager.py +++ b/src/sas/qtgui/MainWindow/GuiManager.py @@ -1264,8 +1264,9 @@ def actionTutorial(self): """ Open the page with tutorial PDF links """ - helpfile = "/user/tutorial.html" - self.showHelp(helpfile) + + help_path = HELP_DIRECTORY_LOCATION / "user" / "tutorial.html" + webbrowser.open(help_path.as_uri()) def actionAcknowledge(self): """ From 6610e231171989222cbb96d17d75852ebe5da1c3 Mon Sep 17 00:00:00 2001 From: Lucas Wilkins Date: Tue, 2 Jul 2024 18:46:03 +0100 Subject: [PATCH 2/2] Point to web docs instead --- src/sas/qtgui/MainWindow/GuiManager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sas/qtgui/MainWindow/GuiManager.py b/src/sas/qtgui/MainWindow/GuiManager.py index 4889298764..4e933ecd0a 100644 --- a/src/sas/qtgui/MainWindow/GuiManager.py +++ b/src/sas/qtgui/MainWindow/GuiManager.py @@ -1265,8 +1265,7 @@ def actionTutorial(self): Open the page with tutorial PDF links """ - help_path = HELP_DIRECTORY_LOCATION / "user" / "tutorial.html" - webbrowser.open(help_path.as_uri()) + webbrowser.open("https://www.sasview.org/docs/user/tutorial.html") def actionAcknowledge(self): """