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