| 17 |
class fraggleViewport(wxMDIParentFrame): |
class fraggleViewport(wxMDIParentFrame): |
| 18 |
def _init_coll_menu1_Items(self, parent): |
def _init_coll_menu1_Items(self, parent): |
| 19 |
# generated method, don't edit |
# generated method, don't edit |
| 20 |
|
|
| 21 |
|
parent.Append(helpString='Configure Netfraggle', |
| 22 |
|
id=wxID_FRAGGLEVIEWPORTMENU1FPREFS, item='Preferences', |
| 23 |
|
kind=wxITEM_NORMAL) |
| 24 |
|
parent.Append(helpString='Exit Netfraggle', |
| 25 |
|
id=wxID_FRAGGLEVIEWPORTMENU1ITEMS1, item='Exit', |
| 26 |
|
kind=wxITEM_NORMAL) |
| 27 |
|
|
|
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) |
|
|
|
|
| 28 |
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1FPREFS, self.OnMenu1items0Menu) |
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1FPREFS, self.OnMenu1items0Menu) |
| 29 |
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1ITEMS1, self.OnMenu1items1Menu) |
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1ITEMS1, self.OnMenu1items1Menu) |
| 30 |
|
|
| 57 |
def __init_preferences__(self): |
def __init_preferences__(self): |
| 58 |
self.preferencesCtl = fraggleCtlPreferences.create(self) |
self.preferencesCtl = fraggleCtlPreferences.create(self) |
| 59 |
self.dialogPrefs = fraggleDialogPrefs.create(self) |
self.dialogPrefs = fraggleDialogPrefs.create(self) |
| 60 |
|
self.dialogPrefs.loadConfig() |
| 61 |
|
self.dialogPrefs.updateConfig() |
| 62 |
|
|
| 63 |
def __init__(self, parent): |
def __init__(self, parent): |
| 64 |
self._init_ctrls(parent) |
self._init_ctrls(parent) |
| 69 |
try: |
try: |
| 70 |
self.dialogPrefs.ShowModal() |
self.dialogPrefs.ShowModal() |
| 71 |
finally: |
finally: |
| 72 |
self.dialogPrefs.Destroy() |
pass |
| 73 |
event.Skip() |
event.Skip() |
| 74 |
|
|
| 75 |
def OnMenu1items1Menu(self, event): |
def OnMenu1items1Menu(self, event): |