[Bio] / ModelEditor / ModelEditor Repository:
ViewVC logotype

Annotation of /ModelEditor/ModelEditor

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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 :     try:
49 : efrank 1.2 #b = BssFactory('biosimscratch/bss@db02', 'oracle' )
50 : efrank 1.1 #b = BssFactory('pgsql.mcs.anl.gov:5432:kahdb:trust:inme', "postgres")
51 : efrank 1.2 b = BssFactory('porta-video:5432:KahSCDb:trust:inme', "postgres")
52 : efrank 1.1 Catalog.instance().addDataFactory( b)
53 :     except NotImplementedError:
54 :     pass
55 :    
56 :     return
57 :    
58 :     def error( self, message):
59 :     dlg = wxMessageDialog(self, message, style=wxOK)
60 :     dlg.ShowModal()
61 :     dlg.Destroy()
62 :     return
63 :    
64 :     ########################################################################
65 :     if __name__ == "__main__":
66 :     app = MyApp(0)
67 :     app.MainLoop()
68 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3