2 |
|
|
3 |
# $Id$ |
# $Id$ |
4 |
# $Log$ |
# $Log$ |
5 |
|
# Revision 1.20 2004/09/05 10:09:26 xabbu |
6 |
|
# + Bug that menues where displayed incorrectly on nt like os resolved. |
7 |
|
# + Removed OS dependend menu creation in faggleMain -> moved to fraggleViewPort |
8 |
|
# + Modules configuration dialog can be displayed by selecting Files->Modules now |
9 |
|
# |
10 |
|
# Revision 1.19 2004/09/05 00:21:10 xabbu |
11 |
|
# +Fixed File Menu Modules item on Posix system. Gotta do testing on Windows with it. |
12 |
|
# |
13 |
# Revision 1.18 2004/09/04 20:26:01 xabbu |
# Revision 1.18 2004/09/04 20:26:01 xabbu |
14 |
# +Added a button to the Preferences tab for showing the Modules Dialog. |
# +Added a button to the Preferences tab for showing the Modules Dialog. |
15 |
# 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. |
128 |
def _init_utils(self): |
def _init_utils(self): |
129 |
# generated method, don't edit |
# generated method, don't edit |
130 |
self.menuBar1 = wxMenuBar() |
self.menuBar1 = wxMenuBar() |
131 |
self.menuBar1.SetAutoLayout(1) |
self.menuBar1.SetAutoLayout(0) |
132 |
|
|
133 |
self.menu1 = wxMenu(title='') |
self.menu1 = wxMenu(title='') |
134 |
|
|
145 |
# generated method, don't edit |
# generated method, don't edit |
146 |
wxMDIParentFrame.__init__(self, id=wxID_FRAGGLEVIEWPORT, |
wxMDIParentFrame.__init__(self, id=wxID_FRAGGLEVIEWPORT, |
147 |
name='fraggleViewport', parent=prnt, pos=wxPoint(335, 382), |
name='fraggleViewport', parent=prnt, pos=wxPoint(335, 382), |
148 |
size=wxSize(435, 273), |
size=wxSize(435, 250), |
149 |
style=wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, |
style=wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, |
150 |
title='NetFraggle 0.0.1') |
title='NetFraggle 0.0.1') |
151 |
self._init_utils() |
self._init_utils() |
152 |
self.SetClientSize(wxSize(427, 246)) |
self.SetClientSize(wxSize(427, 223)) |
153 |
self.SetMenuBar(self.menuBar1) |
self.SetMenuBar(self.menuBar1) |
154 |
|
|
155 |
def __init_modules__(self): |
def __init_modules__(self): |
207 |
event.Skip() |
event.Skip() |
208 |
|
|
209 |
|
|
210 |
def OnMenu2items0Menu(self, event): |
#def OnMenu2items0Menu(self, event): |
211 |
try: |
# try: |
212 |
self.dialogPrefs.ShowModal() |
# self.dialogPrefs.ShowModal() |
213 |
finally: |
# finally: |
214 |
pass |
# pass |
215 |
event.Skip() |
# event.Skip() |
216 |
|
|
217 |
def OnMenu2items1Menu(self, event): |
def OnMenu2items1Menu(self, event): |
218 |
"""Show about screen""" |
"""Show about screen""" |
242 |
self.Close(True) |
self.Close(True) |
243 |
|
|
244 |
def OnMenu1FmodulesMenu(self, event): |
def OnMenu1FmodulesMenu(self, event): |
245 |
|
self.dialogModules.Show() |
246 |
event.Skip() |
event.Skip() |
247 |
|
|
248 |
def OnMenu1FprefsMenu(self, event): |
def OnMenu1FprefsMenu(self, event): |
249 |
|
try: |
250 |
|
self.dialogPrefs.ShowModal() |
251 |
|
finally: |
252 |
|
pass |
253 |
event.Skip() |
event.Skip() |
254 |
|
|
255 |
def OnMenu1Items1Menu(self, event): |
def OnMenu1Items1Menu(self, event): |
256 |
|
self.Destroy() |
257 |
event.Skip() |
event.Skip() |
258 |
|
|