1 |
#Boa:MDIParent:wxMDIParentFrame1 |
#Boa:MDIParent:fraggleViewport |
2 |
|
|
3 |
from wxPython.wx import * |
from wxPython.wx import * |
4 |
|
|
5 |
import fraggleDialogPrefs |
import fraggleDialogPrefs |
6 |
|
import fraggleCtlPreferences |
7 |
|
|
8 |
def create(parent): |
def create(parent): |
9 |
return wxMDIParentFrame1(parent) |
return fraggleViewport(parent) |
10 |
|
|
11 |
[wxID_WXMDIPARENTFRAME1] = map(lambda _init_ctrls: wxNewId(), range(1)) |
[wxID_FRAGGLEVIEWPORT] = map(lambda _init_ctrls: wxNewId(), range(1)) |
12 |
|
|
13 |
[wxID_WXMDIPARENTFRAME1MENU1FPREFS, wxID_WXMDIPARENTFRAME1MENU1ITEMS1, |
[wxID_FRAGGLEVIEWPORTMENU1FPREFS, wxID_FRAGGLEVIEWPORTMENU1ITEMS1, |
14 |
] = map(lambda _init_coll_menu1_Items: wxNewId(), range(2)) |
] = map(lambda _init_coll_menu1_Items: wxNewId(), range(2)) |
15 |
|
|
16 |
class wxMDIParentFrame1(wxMDIParentFrame): |
class fraggleViewport(wxMDIParentFrame): |
17 |
def _init_coll_menu1_Items(self, parent): |
def _init_coll_menu1_Items(self, parent): |
18 |
# generated method, don't edit |
# generated method, don't edit |
19 |
|
|
20 |
parent.Append(helpString='Configure Netfraggle', |
parent.Append(helpString='Configure Netfraggle', |
21 |
id=wxID_WXMDIPARENTFRAME1MENU1FPREFS, item='Preferences', |
id=wxID_FRAGGLEVIEWPORTMENU1FPREFS, item='Preferences', |
22 |
kind=wxITEM_NORMAL) |
kind=wxITEM_NORMAL) |
23 |
parent.Append(helpString='Exit Netfraggle', |
parent.Append(helpString='Exit Netfraggle', |
24 |
id=wxID_WXMDIPARENTFRAME1MENU1ITEMS1, item='Exit', |
id=wxID_FRAGGLEVIEWPORTMENU1ITEMS1, item='Exit', |
25 |
kind=wxITEM_NORMAL) |
kind=wxITEM_NORMAL) |
26 |
EVT_MENU(self, wxID_WXMDIPARENTFRAME1MENU1FPREFS, |
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1FPREFS, self.OnMenu1items0Menu) |
27 |
self.OnMenu1items0Menu) |
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1ITEMS1, self.OnMenu1items1Menu) |
|
EVT_MENU(self, wxID_WXMDIPARENTFRAME1MENU1ITEMS1, |
|
|
self.OnMenu1items1Menu) |
|
28 |
|
|
29 |
def _init_coll_menuBar1_Menus(self, parent): |
def _init_coll_menuBar1_Menus(self, parent): |
30 |
# generated method, don't edit |
# generated method, don't edit |
43 |
|
|
44 |
def _init_ctrls(self, prnt): |
def _init_ctrls(self, prnt): |
45 |
# generated method, don't edit |
# generated method, don't edit |
46 |
wxMDIParentFrame.__init__(self, id=wxID_WXMDIPARENTFRAME1, name='', |
wxMDIParentFrame.__init__(self, id=wxID_FRAGGLEVIEWPORT, |
47 |
parent=prnt, pos=wxPoint(277, 313), size=wxSize(683, 330), |
name='fraggleViewport', parent=prnt, pos=wxPoint(277, 313), |
48 |
|
size=wxSize(683, 307), |
49 |
style=wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, |
style=wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, |
50 |
title='wxMDIParentFrame1') |
title='wxMDIParentFrame1') |
51 |
self._init_utils() |
self._init_utils() |
52 |
self.SetClientSize(wxSize(683, 307)) |
self.SetClientSize(wxSize(683, 284)) |
53 |
self.SetMenuBar(self.menuBar1) |
self.SetMenuBar(self.menuBar1) |
54 |
|
|
55 |
|
def __init_preferences__(self): |
56 |
|
self.preferencesCtl = fraggleCtlPreferences.create(self) |
57 |
|
self.dialogPrefs = fraggleDialogPrefs.create(self) |
58 |
|
|
59 |
def __init__(self, parent): |
def __init__(self, parent): |
60 |
self._init_ctrls(parent) |
self._init_ctrls(parent) |
61 |
|
self.__init_preferences__() |
62 |
|
|
63 |
|
|
64 |
def OnMenu1items0Menu(self, event): |
def OnMenu1items0Menu(self, event): |
|
self.dialogPrefs = fraggleDialogPrefs.wxDialog1(self) |
|
65 |
try: |
try: |
66 |
self.dialogPrefs.ShowModal() |
self.dialogPrefs.ShowModal() |
67 |
finally: |
finally: |