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