Added some help menu options the point to external resources

This commit is contained in:
blitzmann
2014-03-10 19:08:06 -04:00
parent 9e67ad032c
commit 1d66757b28
2 changed files with 16 additions and 1 deletions

View File

@@ -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)

View File

@@ -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: