2 |
|
|
3 |
# $Id$ |
# $Id$ |
4 |
# $Log$ |
# $Log$ |
5 |
|
# Revision 1.19 2004/09/05 00:21:10 xabbu |
6 |
|
# +Fixed File Menu Modules item on Posix system. Gotta do testing on Windows with it. |
7 |
|
# |
8 |
# Revision 1.18 2004/09/04 20:26:01 xabbu |
# Revision 1.18 2004/09/04 20:26:01 xabbu |
9 |
# +Added a button to the Preferences tab for showing the Modules Dialog. |
# +Added a button to the Preferences tab for showing the Modules Dialog. |
10 |
# Todo: When the module dialog is shown, it is still being blocked by the preferences dialog. I am not sure why but will have to look into it further. |
# Todo: When the module dialog is shown, it is still being blocked by the preferences dialog. I am not sure why but will have to look into it further. |
126 |
self.menuBar1.SetAutoLayout(1) |
self.menuBar1.SetAutoLayout(1) |
127 |
|
|
128 |
self.menu1 = wxMenu(title='') |
self.menu1 = wxMenu(title='') |
129 |
|
self._init_coll_menu1_Items(self.menu1) |
130 |
|
|
131 |
self.menu2 = wxMenu(title='') |
self.menu2 = wxMenu(title='') |
132 |
|
self._init_coll_menu2_Items(self.menu2) |
133 |
|
|
134 |
self.FraggleTaskBarMenu = wxMenu(title=u'NetFraggle') |
self.FraggleTaskBarMenu = wxMenu(title=u'NetFraggle') |
135 |
|
self._init_coll_FraggleTaskBarMenu_Items(self.FraggleTaskBarMenu) |
136 |
|
|
137 |
self._init_coll_menuBar1_Menus(self.menuBar1) |
self._init_coll_menuBar1_Menus(self.menuBar1) |
|
self._init_coll_menu1_Items(self.menu1) |
|
|
self._init_coll_menu2_Items(self.menu2) |
|
|
self._init_coll_FraggleTaskBarMenu_Items(self.FraggleTaskBarMenu) |
|
138 |
|
|
139 |
def _init_ctrls(self, prnt): |
def _init_ctrls(self, prnt): |
140 |
# generated method, don't edit |
# generated method, don't edit |
141 |
wxMDIParentFrame.__init__(self, id=wxID_FRAGGLEVIEWPORT, |
wxMDIParentFrame.__init__(self, id=wxID_FRAGGLEVIEWPORT, |
142 |
name='fraggleViewport', parent=prnt, pos=wxPoint(335, 382), |
name='fraggleViewport', parent=prnt, pos=wxPoint(335, 382), |
143 |
size=wxSize(435, 273), |
size=wxSize(427, 246), |
144 |
style=wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, |
style=wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, |
145 |
title='NetFraggle 0.0.1') |
title='NetFraggle 0.0.1') |
146 |
self._init_utils() |
self._init_utils() |
147 |
self.SetClientSize(wxSize(427, 246)) |
self.SetClientSize(wxSize(427, 223)) |
148 |
self.SetMenuBar(self.menuBar1) |
self.SetMenuBar(self.menuBar1) |
149 |
|
|
150 |
def __init_modules__(self): |
def __init_modules__(self): |
237 |
self.Close(True) |
self.Close(True) |
238 |
|
|
239 |
def OnMenu1FmodulesMenu(self, event): |
def OnMenu1FmodulesMenu(self, event): |
240 |
|
self.dialogModules.Show() |
241 |
event.Skip() |
event.Skip() |
242 |
|
|
243 |
def OnMenu1FprefsMenu(self, event): |
def OnMenu1FprefsMenu(self, event): |