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 |
# 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. |
# +Fixed File Menu Modules item on Posix system. Gotta do testing on Windows with it. |
12 |
# |
# |
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='') |
|
self._init_coll_menu1_Items(self.menu1) |
|
134 |
|
|
135 |
self.menu2 = wxMenu(title='') |
self.menu2 = wxMenu(title='') |
|
self._init_coll_menu2_Items(self.menu2) |
|
136 |
|
|
137 |
self.FraggleTaskBarMenu = wxMenu(title=u'NetFraggle') |
self.FraggleTaskBarMenu = wxMenu(title=u'NetFraggle') |
|
self._init_coll_FraggleTaskBarMenu_Items(self.FraggleTaskBarMenu) |
|
138 |
|
|
139 |
self._init_coll_menuBar1_Menus(self.menuBar1) |
self._init_coll_menuBar1_Menus(self.menuBar1) |
140 |
|
self._init_coll_menu1_Items(self.menu1) |
141 |
|
self._init_coll_menu2_Items(self.menu2) |
142 |
|
self._init_coll_FraggleTaskBarMenu_Items(self.FraggleTaskBarMenu) |
143 |
|
|
144 |
def _init_ctrls(self, prnt): |
def _init_ctrls(self, prnt): |
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(427, 246), |
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() |
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""" |
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 |
|
|