00001
00002
00003 import GaudiPython
00004
00005 def start():
00006 outputlevel = 3
00007 appMgr = GaudiPython.AppMgr(outputlevel,"")
00008 appMgr.config()
00009 appMgr.initialize()
00010 appMgr.start()
00011 return
00012
00013 def toui():
00014 import gaudiinterface as gi
00015 uint = gi.session().ui()
00016 print 'Quanjing: uint="%s"'%str(uint)
00017 exit_code = uint.steer()
00018 if exit_code == 999:
00019 appMgr = GaudiPython.AppMgr()
00020 appMgr.stop()
00021 appMgr.finalize()
00022 exit()
00023 return
00024