Changeset adb0851 in sasview for src/sas/sasgui
- Timestamp:
- Oct 7, 2016 1:05:25 PM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- b61bd57
- Parents:
- e697487
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/gui_manager.py
r3fac0df radb0851 1333 1333 self._applications_menu_name = name 1334 1334 1335 def _on_marketplace_click(self, event): 1336 """ 1337 Click event for the help menu item linking to the Marketplace. 1338 """ 1339 import webbrowser 1340 webbrowser.open_new(config.marketplace_url) 1341 1335 1342 def _add_help_menu(self): 1336 1343 """ … … 1338 1345 tutorial PDF and documentation pages. 1339 1346 """ 1340 # Help menu1341 1347 self._help_menu = wx.Menu() 1342 style = self.__gui_style & GUIFRAME.WELCOME_PANEL_ON1343 1348 1344 1349 wx_id = wx.NewId() 1345 1350 self._help_menu.Append(wx_id, '&Documentation', '') 1346 1351 wx.EVT_MENU(self, wx_id, self._onSphinxDocs) 1347 self._help_menu.AppendSeparator()1348 1352 1349 1353 if config._do_tutorial and (IS_WIN or sys.platform == 'darwin'): … … 1351 1355 self._help_menu.Append(wx_id, '&Tutorial', 'Software tutorial') 1352 1356 wx.EVT_MENU(self, wx_id, self._onTutorial) 1353 self._help_menu.AppendSeparator()1354 1355 1357 1356 1358 if config._do_acknowledge: … … 1358 1360 self._help_menu.Append(wx_id, '&Acknowledge', 'Acknowledging SasView') 1359 1361 wx.EVT_MENU(self, wx_id, self._onAcknowledge) 1360 self._help_menu.AppendSeparator()1361 1362 1362 1363 1363 if config._do_aboutbox: … … 1366 1366 self._help_menu.Append(wx_id, '&About', 'Software information') 1367 1367 wx.EVT_MENU(self, wx_id, self._onAbout) 1368 self._help_menu.AppendSeparator() 1369 1368 1369 if config.marketplace_url: 1370 wx_id = wx.NewId() 1371 self._help_menu.Append(wx_id, '&Model marketplace', '') 1372 wx.EVT_MENU(self, wx_id, self._on_marketplace_click) 1370 1373 1371 1374 # Checking for updates
Note: See TracChangeset
for help on using the changeset viewer.