chiark / gitweb /
Added help menu items, and warning for MacOS
authordaid <daid303@gmail.com>
Fri, 16 Mar 2012 11:30:27 +0000 (12:30 +0100)
committerdaid <daid303@gmail.com>
Fri, 16 Mar 2012 11:30:27 +0000 (12:30 +0100)
SkeinPyPy_NewUI/newui/mainWindow.py

index ab42129b397d949264d622b764a451cd95b46fba..c7d91a20861e51a6da8536e4b64b54d0d52f26e2 100644 (file)
@@ -1,7 +1,7 @@
 from __future__ import absolute_import
 import __init__
 
-import wx, os, platform, types
+import wx, os, platform, types, webbrowser
 
 from fabmetheus_utilities import settings
 
@@ -18,6 +18,8 @@ from newui import machineCom
 def main():
        app = wx.App(False)
        if settings.getPreference('wizardDone', 'False') == 'False':
+               if os.name == 'darwin':
+                       wx.MessageBox('The MacOS version of SkeinPyPy is experimental.\nThere are still UI/usability bugs. Check the issue list at:\nhttps://github.com/daid/SkeinPyPy/issues\nfor details.\nPlease report any extra issue you find.', 'MacOS Warning', wx.OK | wx.ICON_INFORMATION)
                configWizard.configWizard()
                settings.putPreference("wizardDone", "True")
        mainWindow()
@@ -59,6 +61,13 @@ class mainWindow(configBase.configWindowBase):
                i = expertMenu.Append(-1, 'ReRun first run wizard...')
                self.Bind(wx.EVT_MENU, self.OnFirstRunWizard, i)
                menubar.Append(expertMenu, 'Expert')
+               
+               helpMenu = wx.Menu()
+               i = helpMenu.Append(-1, 'Online documentation...')
+               self.Bind(wx.EVT_MENU, lambda e: webbrowser.open('https://github.com/daid/SkeinPyPy/wiki'), i)
+               i = helpMenu.Append(-1, 'Report a problem...')
+               self.Bind(wx.EVT_MENU, lambda e: webbrowser.open('https://github.com/daid/SkeinPyPy/issues'), i)
+               menubar.Append(helpMenu, 'Help')
                self.SetMenuBar(menubar)
                
                self.lastPath = ""