[Bio] / PyGUI / ModelEditor.py Repository:
ViewVC logotype

View of /PyGUI/ModelEditor.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (as text) (annotate)
Fri Sep 10 13:32:59 2004 UTC (15 years, 2 months ago) by efrank
Branch: MAIN
CVS Tags: MigrateToNewPackage, HEAD
migrate to standard.mk makefile format.
rename to satisfy that.

#!/usr/bin/env python
from wxPython.wx import *
#from KahOM.RecoElem import RecoElem

from PyGUI.MainLayout        import MainLayout 
from PyGUI.RXpanel           import RXPanel
from PyGUI.RecoElempanel     import RecoElempanel
from PyGUI.Catalogpanel      import Catalogpanel
from PyGUI.MetabolitePanel   import MetabolitePanel
from PyGUI.EnzymeWindow      import EnzymeWindow
from PyGUI.HelpPanel         import HelpPanel
from PyGUI.FontManager       import FontManager
from PyGUI.MainMenuBar       import MainMenuBar
from FaST.BssFactory         import BssFactory
from CatalogServices.Catalog import Catalog

#need to change panel to Panel. lower case panel is already in cvs.

from wxPython.grid import *


class MyApp(wxApp):
    def OnInit(self):
        frame = Gui(None, -1, "test")
        frame.Show()
        return 1


class Gui(MainLayout):
  
    def __init__(self, *args, **kwds):

        #self.factoryMgr = None
        MainLayout.__init__(self, *args, **kwds)

        self.rootId        = None        # root ID for recoelem tree.  why here??
        self.catalogRootId = None        # root ID for catalog tree.
        self.fontManager    = FontManager(self)
        self.mainMenuBar    = MainMenuBar(self)
	self.rx             = RXPanel(self)
        self.re             = RecoElempanel(self)
        self.cat            = Catalogpanel(self)
        self.met            = MetabolitePanel(self)
        self.enzyme         = EnzymeWindow(self)
        self.help           = HelpPanel(self)
        
        try:
            b = BssFactory('biosimscratch/bss@db02', 'oracle' )
            #b = BssFactory('pgsql.mcs.anl.gov:5432:kahdb:trust:inme', "postgres")
            Catalog.instance().addDataFactory( b)
        except NotImplementedError:
            pass

        return

    def error( self, message):
        dlg = wxMessageDialog(self, message, style=wxOK)
        dlg.ShowModal()
        dlg.Destroy()
        return

########################################################################
if __name__ == "__main__":
    app = MyApp(0)     
    app.MainLoop()     


MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3