Skip to content

Commit

Permalink
Changing wxID for about menu so it appears under Help. It seems that …
Browse files Browse the repository at this point in the history
…with the current menu construction and wx3.0 the special menu IDs don't work.

Closes #705
  • Loading branch information
ajj committed Oct 5, 2016
1 parent ca4d985 commit 3fac0df
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/sas/sasgui/guiframe/gui_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1344,23 +1344,29 @@ def _add_help_menu(self):
wx_id = wx.NewId()
self._help_menu.Append(wx_id, '&Documentation', '')
wx.EVT_MENU(self, wx_id, self._onSphinxDocs)
self._help_menu.AppendSeparator()

if config._do_tutorial and (IS_WIN or sys.platform == 'darwin'):
self._help_menu.AppendSeparator()
wx_id = wx.NewId()
self._help_menu.Append(wx_id, '&Tutorial', 'Software tutorial')
wx.EVT_MENU(self, wx_id, self._onTutorial)
self._help_menu.AppendSeparator()


if config._do_acknowledge:
self._help_menu.AppendSeparator()
wx_id = wx.NewId()
self._help_menu.Append(wx_id, '&Acknowledge', 'Acknowledging SasView')
wx.EVT_MENU(self, wx_id, self._onAcknowledge)
self._help_menu.AppendSeparator()


if config._do_aboutbox:
logging.info("Doing help menu")
wx_id = wx.NewId()
self._help_menu.Append(wx_id, '&About', 'Software information')
wx.EVT_MENU(self, wx_id, self._onAbout)
self._help_menu.AppendSeparator()
self._help_menu.Append(wx.ID_ABOUT, '&About', 'Software information')
wx.EVT_MENU(self, wx.ID_ABOUT, self._onAbout)


# Checking for updates
wx_id = wx.NewId()
Expand Down

0 comments on commit 3fac0df

Please sign in to comment.