# revision: Guillaume Vareille # ######################################################################### # # $Header: /opt/cvs/python/packages/share1.5/Vision/doc/Examples/matplotlib/ImageFigure_net.py,v 1.7 2009/09/04 17:38:01 vareille Exp $ # # $Id: ImageFigure_net.py,v 1.7 2009/09/04 17:38:01 vareille Exp $ # if __name__=='__main__': from sys import argv if '--help' in argv or '-h' in argv or '-w' in argv: # run without Vision withoutVision = True from Vision.VPE import NoGuiExec ed = NoGuiExec() from NetworkEditor.net import Network import os masterNet = Network("process-"+str(os.getpid())) ed.addNetwork(masterNet) else: # run as a stand alone application while vision is hidden withoutVision = False from Vision import launchVisionToRunNetworkAsApplication, mainLoopVisionToRunNetworkAsApplication if '-noSplash' in argv: splash = False else: splash = True masterNet = launchVisionToRunNetworkAsApplication(splash=splash) import os masterNet.filename = os.path.abspath(__file__) from traceback import print_exc
# # revision: Guillaume Vareille # ######################################################################### # # $Header: /opt/cvs/python/packages/share1.5/AutoDockTools/CADD/VisionNetworks/VS_net.py,v 1.1 2010/11/06 00:59:32 sanner Exp $ # # $Id: VS_net.py,v 1.1 2010/11/06 00:59:32 sanner Exp $ # if __name__ == '__main__': from sys import argv if '--help' in argv or '-h' in argv or '-w' in argv: # run without Vision withoutVision = True from Vision.VPE import NoGuiExec ed = NoGuiExec() from NetworkEditor.net import Network import os masterNet = Network("process-" + str(os.getpid())) ed.addNetwork(masterNet) else: # run as a stand alone application while vision is hidden withoutVision = False from Vision import launchVisionToRunNetworkAsApplication, mainLoopVisionToRunNetworkAsApplication if '-noSplash' in argv: splash = False else: splash = True masterNet = launchVisionToRunNetworkAsApplication(splash=splash) import os masterNet.filename = os.path.abspath(__file__) from traceback import print_exc
def __init__(self): # create an instance of Vision without a GUI from Vision.VPE import NoGuiExec self.ed = NoGuiExec()