PyMOL can't be stopped and restarted within a Python -- it terminates the process.
However, you can hide the graphics window as needed... cmd.window("hide") cmd.window("show") (in the future, pymol2 will support class-like behavior.) Cheers, Warren -- Warren L. DeLano, Ph.D. Principal Scientist . DeLano Scientific LLC . 400 Oyster Point Blvd., Suite 213 . South San Francisco, CA 94080 USA . Biz:(650)-872-0942 Tech:(650)-872-0834 . Fax:(650)-872-0273 Cell:(650)-346-1154 . mailto:war...@delsci.com > -----Original Message----- > From: pymol-users-ad...@lists.sourceforge.net > [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of Dmitriy > Sent: Saturday, October 29, 2005 10:07 PM > To: pymol-users@lists.sourceforge.net > Subject: [PyMOL] cmd.quit() kills pymol together with the > external python launcher > > Hello > > I have a question about cmd.quit() behavior. > here goes simplest example: > ----------------------------------------------------- > import __main__ > __main__.pymol_argv = [ 'pymol', '-qx' ] > > import pymol > pymol.finish_launching() > > from pymol import cmd > > raw_input("type something") > cmd.quit() > print "finfished" > ---------------------------------------------------- > cmd.quit() kills the whole program, not just PyMol's window. > i.e. "finished" is never printed. > Is it possible somehow to close only PyMol without > interrupting the program? > > What I want to be able to do in general is to launch PyMol > from my program, plot some data then close PyMol. Then launch > PyMol again if I need to plot some things again, plot, close, > and so on. All these things related to PyMol are separated > in a class. Calling cmd.quit() simply ruins the whole program. > > Pymol ver. 20beta I think (latest from CVS) > > Help is really appreciated > Thanks > Dmitriy > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through > End of 2005 Visit http://www.jboss.com/services/certification > for more information _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users > > > >