--- nfo/projects/netfraggle/bin/fraggleViewport.py 2004/08/25 18:33:43 1.4 +++ nfo/projects/netfraggle/bin/fraggleViewport.py 2004/08/25 19:54:07 1.5 @@ -1,5 +1,6 @@ #Boa:MDIParent:fraggleViewport +import os from wxPython.wx import * import fraggleDialogPrefs @@ -17,12 +18,17 @@ def _init_coll_menu1_Items(self, parent): # generated method, don't edit - parent.Append(helpString='Configure Netfraggle', - id=wxID_FRAGGLEVIEWPORTMENU1FPREFS, item='Preferences', - kind=wxITEM_NORMAL) - parent.Append(helpString='Exit Netfraggle', - id=wxID_FRAGGLEVIEWPORTMENU1ITEMS1, item='Exit', - kind=wxITEM_NORMAL) + if os.name == "posix": + parent.Append(helpString='Configure Netfraggle', + id=wxID_FRAGGLEVIEWPORTMENU1FPREFS, item='Preferences', + kind=wxITEM_NORMAL) + parent.Append(helpString='Exit Netfraggle', + id=wxID_FRAGGLEVIEWPORTMENU1ITEMS1, item='Exit', + kind=wxITEM_NORMAL) + elif os.name == "nt": + parent.Append(wxID_FRAGGLEVIEWPORTMENU1FPREFS, 'Configure Netfraggle', "", wxITEM_NORMAL) + parent.Append(wxID_FRAGGLEVIEWPORTMENU1FPREFS, 'Exit Netfraggle', "", wxITEM_NORMAL) + EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1FPREFS, self.OnMenu1items0Menu) EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1ITEMS1, self.OnMenu1items1Menu)