/[cvs]/nfo/projects/netfraggle/bin/fraggleMain.py
ViewVC logotype

Diff of /nfo/projects/netfraggle/bin/fraggleMain.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by xabbu, Wed Aug 25 23:47:07 2004 UTC revision 1.5 by joko, Fri Aug 27 03:22:30 2004 UTC
# Line 1  Line 1 
1  #!/usr/bin/env python  #!/usr/bin/env python
2  #Boa:App:BoaApp  #Boa:App:BoaApp
3    
4  import os  # $Id$
5    # $Log$
6    # Revision 1.5  2004/08/27 03:22:30  joko
7    # start singleton instance of FraggleEngine here
8    #
9    # Revision 1.4  2004/08/26 15:19:26  joko
10    # get rid of urlOpener here
11    # added key shortcuts to menu-items
12    #
13    
14    import sys, os
15  from wxPython.wx import *  from wxPython.wx import *
16    
17  import fraggleEngine  from fraggleConstants import *
18    from fraggleEngine import *
19  from fraggleViewport import *  from fraggleViewport import *
20    
21  modules ={'fraggleDialogPrefs': [0, '', 'fraggleDialogPrefs.py'],  modules ={'fraggleDialogPrefs': [0, '', 'fraggleDialogPrefs.py'],
# Line 25  class fraggleMainWin(fraggleViewport): Line 36  class fraggleMainWin(fraggleViewport):
36          if os.name == 'posix':          if os.name == 'posix':
37              fraggleViewport._init_coll_menu1_Items(self, parent)              fraggleViewport._init_coll_menu1_Items(self, parent)
38          elif os.name == 'nt':          elif os.name == 'nt':
39              parent.Append(wxID_FRAGGLEVIEWPORTMENU1FPREFS, 'Configure Netfraggle', "", wxITEM_NORMAL)              parent.Append(wxID_FRAGGLEVIEWPORTMENU1FPREFS, '&Configure Netfraggle', "", wxITEM_NORMAL)
40              parent.Append(wxID_FRAGGLEVIEWPORTMENU1ITEMS1, 'Exit Netfraggle', "", wxITEM_NORMAL)              parent.Append(wxID_FRAGGLEVIEWPORTMENU1ITEMS1, '&Exit Netfraggle', "", wxITEM_NORMAL)
41    
42          EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1FPREFS, self.OnMenu1items0Menu)          EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1FPREFS, self.OnMenu1items0Menu)
43          EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1ITEMS1, self.OnMenu1items1Menu)          EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1ITEMS1, self.OnMenu1items1Menu)
# Line 36  class fraggleMainWin(fraggleViewport): Line 47  class fraggleMainWin(fraggleViewport):
47          if os.name == 'posix':          if os.name == 'posix':
48              fraggleViewport._init_coll_menu2_Items(self, parent)              fraggleViewport._init_coll_menu2_Items(self, parent)
49          elif os.name == 'nt':          elif os.name == 'nt':
50              parent.Append(wxID_FRAGGLEVIEWPORTMENU2CONT, 'Contents', "", wxITEM_NORMAL)              parent.Append(wxID_FRAGGLEVIEWPORTMENU2CONT, '&Contents', "", wxITEM_NORMAL)
51              parent.Append(wxID_FRAGGLEVIEWPORTMENU2ABOUT, 'About', "", wxITEM_NORMAL)              parent.Append(wxID_FRAGGLEVIEWPORTMENU2ABOUT, '&About', "", wxITEM_NORMAL)
52                            
53          EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU2CONT, self.OnMenu2items0Menu)          EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU2CONT, self.OnMenu2items0Menu)
54          EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU2ABOUT, self.OnMenu2items1Menu)          EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU2ABOUT, self.OnMenu2items1Menu)
55    
   
56  def main():  def main():
57      #global url      sys.path.append(os.path.join(APPLOCATION, '..', 'libs'))
58      #url = urlOpener() # MUST start before the gui      global engine
59      urlOpener = fraggleEngine.urlOpener()      engine = FraggleEngine()
60      application = BoaApp(0)      application = BoaApp(0)
61      application.MainLoop()      application.MainLoop()
62    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed