1 |
#!/usr/bin/env python |
#!/usr/bin/env python |
2 |
#Boa:App:BoaApp |
#Boa:App:BoaApp |
3 |
|
|
4 |
|
# $Id$ |
5 |
|
# $Log$ |
6 |
|
# Revision 1.4 2004/08/26 15:19:26 joko |
7 |
|
# get rid of urlOpener here |
8 |
|
# added key shortcuts to menu-items |
9 |
|
# |
10 |
|
|
11 |
import os |
import os |
12 |
from wxPython.wx import * |
from wxPython.wx import * |
13 |
|
|
|
import fraggleEngine |
|
14 |
from fraggleViewport import * |
from fraggleViewport import * |
15 |
|
|
16 |
modules ={'fraggleDialogPrefs': [0, '', 'fraggleDialogPrefs.py'], |
modules ={'fraggleDialogPrefs': [0, '', 'fraggleDialogPrefs.py'], |
31 |
if os.name == 'posix': |
if os.name == 'posix': |
32 |
fraggleViewport._init_coll_menu1_Items(self, parent) |
fraggleViewport._init_coll_menu1_Items(self, parent) |
33 |
elif os.name == 'nt': |
elif os.name == 'nt': |
34 |
parent.Append(wxID_FRAGGLEVIEWPORTMENU1FPREFS, 'Configure Netfraggle', "", wxITEM_NORMAL) |
parent.Append(wxID_FRAGGLEVIEWPORTMENU1FPREFS, '&Configure Netfraggle', "", wxITEM_NORMAL) |
35 |
parent.Append(wxID_FRAGGLEVIEWPORTMENU1ITEMS1, 'Exit Netfraggle', "", wxITEM_NORMAL) |
parent.Append(wxID_FRAGGLEVIEWPORTMENU1ITEMS1, '&Exit Netfraggle', "", wxITEM_NORMAL) |
36 |
|
|
37 |
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1FPREFS, self.OnMenu1items0Menu) |
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1FPREFS, self.OnMenu1items0Menu) |
38 |
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1ITEMS1, self.OnMenu1items1Menu) |
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1ITEMS1, self.OnMenu1items1Menu) |
42 |
if os.name == 'posix': |
if os.name == 'posix': |
43 |
fraggleViewport._init_coll_menu2_Items(self, parent) |
fraggleViewport._init_coll_menu2_Items(self, parent) |
44 |
elif os.name == 'nt': |
elif os.name == 'nt': |
45 |
parent.Append(wxID_FRAGGLEVIEWPORTMENU2CONT, 'Contents', "", wxITEM_NORMAL) |
parent.Append(wxID_FRAGGLEVIEWPORTMENU2CONT, '&Contents', "", wxITEM_NORMAL) |
46 |
parent.Append(wxID_FRAGGLEVIEWPORTMENU2ABOUT, 'About', "", wxITEM_NORMAL) |
parent.Append(wxID_FRAGGLEVIEWPORTMENU2ABOUT, '&About', "", wxITEM_NORMAL) |
47 |
|
|
48 |
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU2CONT, self.OnMenu2items0Menu) |
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU2CONT, self.OnMenu2items0Menu) |
49 |
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU2ABOUT, self.OnMenu2items1Menu) |
EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU2ABOUT, self.OnMenu2items1Menu) |
50 |
|
|
|
|
|
51 |
def main(): |
def main(): |
|
#global url |
|
|
#url = urlOpener() # MUST start before the gui |
|
|
urlOpener = fraggleEngine.urlOpener() |
|
52 |
application = BoaApp(0) |
application = BoaApp(0) |
53 |
application.MainLoop() |
application.MainLoop() |
54 |
|
|