[Bio] / ModelEditor / ModelEditor Repository:
ViewVC logotype

Annotation of /ModelEditor/ModelEditor

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (view) (download)

1 : efrank 1.1 #!/usr/bin/env python
2 :    
3 :     from wxPython.wx import *
4 :    
5 :     from ModelEditor.MainLayout import MainLayout
6 :     from ModelEditor.RXpanel import RXPanel
7 :     from ModelEditor.RecoElempanel import RecoElempanel
8 :     from ModelEditor.Catalogpanel import Catalogpanel
9 :     from ModelEditor.MetabolitePanel import MetabolitePanel
10 :     from ModelEditor.EnzymeWindow import EnzymeWindow
11 :     from ModelEditor.HelpPanel import HelpPanel
12 :     from ModelEditor.FontManager import FontManager
13 :     from ModelEditor.MainMenuBar import MainMenuBar
14 :     from FaST.BssFactory import BssFactory
15 :     from CatalogServices.Catalog import Catalog
16 :    
17 :     #need to change panel to Panel. lower case panel is already in cvs.
18 :    
19 :     from wxPython.grid import *
20 :    
21 :    
22 :     class MyApp(wxApp):
23 :     def OnInit(self):
24 :     frame = Gui(None, -1, "test")
25 :     frame.Show()
26 :     return 1
27 :    
28 :    
29 :     class Gui(MainLayout):
30 :    
31 :     def __init__(self, *args, **kwds):
32 :    
33 :     #self.factoryMgr = None
34 :     MainLayout.__init__(self, *args, **kwds)
35 :    
36 :     self.rootId = None # root ID for recoelem tree. why here??
37 :     self.catalogRootId = None # root ID for catalog tree.
38 :     self.fontManager = FontManager(self)
39 :     self.mainMenuBar = MainMenuBar(self)
40 :     self.rx = RXPanel(self)
41 :     self.re = RecoElempanel(self)
42 :     self.cat = Catalogpanel(self)
43 :     self.met = MetabolitePanel(self)
44 :     self.enzyme = EnzymeWindow(self)
45 :     self.help = HelpPanel(self)
46 : efrank 1.2 self.meAGMgr = None #MeAGMgr instance to manage ag issues
47 : efrank 1.1
48 : efrank 1.3 EVT_CLOSE(self, self.mainMenuBar.exitApp)
49 :    
50 : efrank 1.1 try:
51 : efrank 1.2 #b = BssFactory('biosimscratch/bss@db02', 'oracle' )
52 : efrank 1.1 #b = BssFactory('pgsql.mcs.anl.gov:5432:kahdb:trust:inme', "postgres")
53 : efrank 1.3 #b = BssFactory('porta-video:5432:KahSCDb:trust:inme', "postgres")
54 :     b = BssFactory('fl-gentoo-test:5432:KahSCDb:trust:inme', "postgres")
55 : efrank 1.1 Catalog.instance().addDataFactory( b)
56 :     except NotImplementedError:
57 :     pass
58 :    
59 :     return
60 :    
61 :     def error( self, message):
62 :     dlg = wxMessageDialog(self, message, style=wxOK)
63 :     dlg.ShowModal()
64 :     dlg.Destroy()
65 :     return
66 :    
67 :     ########################################################################
68 :     if __name__ == "__main__":
69 :     app = MyApp(0)
70 :     app.MainLoop()
71 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3