From 4769b447a85f04e9bca144640f604abad6deb21d Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Tue, 20 Jan 2015 13:56:15 +0100 Subject: [PATCH] added help menu to the menubar --- QtPyLoT.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/QtPyLoT.py b/QtPyLoT.py index 05fe9d4f..dd52c0ba 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -200,6 +200,7 @@ class MainWindow(QMainWindow): openIcon = self.style().standardIcon(QStyle.SP_DirOpenIcon) quitIcon = self.style().standardIcon(QStyle.SP_MediaStop) saveIcon = self.style().standardIcon(QStyle.SP_DriveHDIcon) + helpIcon = self.style().standardIcon(QStyle.SP_DialogHelpButton) openEventAction = self.createAction("&Open event ...", self.loadData, QKeySequence.Open, openIcon, "Open an event.") @@ -233,6 +234,11 @@ class MainWindow(QMainWindow): self.printEvent, QKeySequence.Print, QIcon(":/printer.png"), "Print waveform overview.") + helpAction = self.createAction("&Help ...", self.helpHelp, + QKeySequence.HelpContents, helpIcon, + """Show either the documentation + homepage (internet connection available), + or shipped documentation files.""") self.fileMenu = self.menuBar().addMenu('&File') self.fileMenuActions = (openEventAction, saveEventAction, prefsEventAction, quitAction)