Changes in src/sas/qtgui/MainWindow/GuiManager.py [d1955d67:e90988c] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
rd1955d67 re90988c 86 86 # Set up the status bar 87 87 self.statusBarSetup() 88 # Show the Welcome panel 89 self.welcomePanel = WelcomePanel() 90 self._workspace.workspace.addSubWindow(self.welcomePanel) 91 92 # Current help file 93 self._helpView = QWebView() 88 94 89 # Needs URL like path, so no path.join() here 95 90 self._helpLocation = GuiUtils.HELP_DIRECTORY_LOCATION + "/index.html" … … 99 94 "_downloads", 100 95 "Tutorial.pdf")) 96 101 97 def addWidgets(self): 102 98 """ … … 131 127 self.ackWidget = Acknowledgements() 132 128 self.aboutWidget = AboutBox() 129 self.welcomePanel = WelcomePanel() 133 130 134 131 # Add calculators - floating for usability … … 165 162 """ 166 163 pass 164 165 def showHelp(self, url): 166 """ 167 Open a local url in the default browser 168 """ 169 location = GuiUtils.HELP_DIRECTORY_LOCATION + url 170 try: 171 webbrowser.open('file://' + os.path.realpath(location)) 172 except webbrowser.Error as ex: 173 logging.warning("Cannot display help. %s" % ex) 167 174 168 175 def workspace(self): … … 334 341 msg += " Please try again later." 335 342 self.communicate.statusBarUpdateSignal.emit(msg) 343 344 def showWelcomeMessage(self): 345 """ Show the Welcome panel """ 346 self._workspace.workspace.addSubWindow(self.welcomePanel) 347 self.welcomePanel.show() 336 348 337 349 def addCallbacks(self): … … 714 726 TODO: use QNetworkAccessManager to assure _helpLocation is valid 715 727 """ 716 self._helpView.load(QUrl(self._helpLocation)) 717 self._helpView.show() 728 self.showHelp(self._helpLocation) 718 729 719 730 def actionTutorial(self):
Note: See TracChangeset
for help on using the changeset viewer.