3 |
|
|
4 |
# $Id$ |
# $Id$ |
5 |
# $Log$ |
# $Log$ |
6 |
|
# Revision 1.8 2004/09/05 10:09:26 xabbu |
7 |
|
# + Bug that menues where displayed incorrectly on nt like os resolved. |
8 |
|
# + Removed OS dependend menu creation in faggleMain -> moved to fraggleViewPort |
9 |
|
# + Modules configuration dialog can be displayed by selecting Files->Modules now |
10 |
|
# |
11 |
# Revision 1.7 2004/08/30 13:55:12 joko |
# Revision 1.7 2004/08/30 13:55:12 joko |
12 |
# + caching phpsessionid here |
# + caching phpsessionid here |
13 |
# |
# |
44 |
class fraggleMainWin(fraggleViewport): |
class fraggleMainWin(fraggleViewport): |
45 |
def _init_coll_menu1_Items(self, parent): |
def _init_coll_menu1_Items(self, parent): |
46 |
|
|
47 |
if os.name == 'posix': |
|
48 |
fraggleViewport._init_coll_menu1_Items(self, parent) |
fraggleViewport._init_coll_menu1_Items(self, parent) |
49 |
elif os.name == 'nt': |
|
|
parent.Append(wxID_FRAGGLEVIEWPORTMENU1FPREFS, '&Configure Netfraggle', "", wxITEM_NORMAL) |
|
|
parent.Append(wxID_FRAGGLEVIEWPORTMENU1ITEMS1, '&Exit Netfraggle', "", wxITEM_NORMAL) |
|
|
|
|
|
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1FPREFS, self.OnMenu1items0Menu) |
|
|
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1ITEMS1, self.OnMenu1items1Menu) |
|
50 |
|
|
51 |
def _init_coll_menu2_Items(self, parent): |
def _init_coll_menu2_Items(self, parent): |
52 |
|
|
53 |
if os.name == 'posix': |
|
54 |
fraggleViewport._init_coll_menu2_Items(self, parent) |
fraggleViewport._init_coll_menu2_Items(self, parent) |
55 |
elif os.name == 'nt': |
|
|
parent.Append(wxID_FRAGGLEVIEWPORTMENU2CONT, '&Contents', "", wxITEM_NORMAL) |
|
|
parent.Append(wxID_FRAGGLEVIEWPORTMENU2ABOUT, '&About', "", wxITEM_NORMAL) |
|
|
|
|
|
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU2CONT, self.OnMenu2items0Menu) |
|
|
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU2ABOUT, self.OnMenu2items1Menu) |
|
56 |
|
|
57 |
def main(): |
def main(): |
58 |
global engine, phpsessionid |
global engine, phpsessionid |