diff --git a/gui/mainFrame.py b/gui/mainFrame.py index 1d1d8d4e0..e6475ffae 100644 --- a/gui/mainFrame.py +++ b/gui/mainFrame.py @@ -170,7 +170,7 @@ class MainFrame(wx.Frame): dlg = UpdateDialog(self, release) dlg.ShowModal() dlg.Destroy() - + def LoadMainFrameAttribs(self): mainFrameDefaultAttribs = {"wnd_width":1000, "wnd_height": 700, "wnd_maximized": False} @@ -330,6 +330,12 @@ class MainFrame(wx.Frame): dlg.ShowModal() dlg.Destroy() + def goUserGuide(self, event): + wx.LaunchDefaultBrowser('https://github.com/DarkFenX/Pyfa/wiki/User-Guide') + + def goForums(self, event): + wx.LaunchDefaultBrowser('https://forums.eveonline.com/default.aspx?g=posts&t=247609') + def registerMenu(self): menuBar = self.GetMenuBar() # Quit @@ -357,6 +363,10 @@ class MainFrame(wx.Frame): self.Bind(wx.EVT_MENU, self.importCharacter, id=menuBar.importCharacterId) # Preference dialog self.Bind(wx.EVT_MENU, self.showPreferenceDialog, id = menuBar.preferencesId) + # User guide + self.Bind(wx.EVT_MENU, self.goUserGuide, id = menuBar.userGuideId) + # EVE Forums + self.Bind(wx.EVT_MENU, self.goForums, id = menuBar.forumId) #Clipboard exports self.Bind(wx.EVT_MENU, self.exportToClipboard, id=wx.ID_COPY) diff --git a/gui/mainMenuBar.py b/gui/mainMenuBar.py index cf0583dac..1f85444b7 100644 --- a/gui/mainMenuBar.py +++ b/gui/mainMenuBar.py @@ -33,6 +33,8 @@ class MainMenuBar(wx.MenuBar): self.exportSkillsNeededId = wx.NewId() self.importCharacterId = wx.NewId() self.preferencesId = wx.NewId() + self.userGuideId = wx.NewId() + self.forumId = wx.NewId() self.mainFrame = gui.mainFrame.MainFrame.getInstance() @@ -96,6 +98,9 @@ class MainMenuBar(wx.MenuBar): # Help menu helpMenu = wx.Menu() self.Append(helpMenu, "&Help") + helpMenu.Append(self.userGuideId, "User Guide", "Go to User Guide on GitHub") + helpMenu.Append(self.forumId, "Forums", "Go to EVE Online Forum thread") + helpMenu.AppendSeparator() helpMenu.Append(wx.ID_ABOUT) if config.debug: