From: Warren D. <wa...@de...> - 2005-11-03 03:18:21
|
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. =20 Principal Scientist . DeLano Scientific LLC =20 . 400 Oyster Point Blvd., Suite 213 =20 . South San Francisco, CA 94080 USA =20 . Biz:(650)-872-0942 Tech:(650)-872-0834 =20 . Fax:(650)-872-0273 Cell:(650)-346-1154 . mailto:wa...@de... =20 =20 > -----Original Message----- > From: pym...@li...=20 > [mailto:pym...@li...] On Behalf Of Dmitriy > Sent: Saturday, October 29, 2005 10:07 PM > To: pym...@li... > Subject: [PyMOL] cmd.quit() kills pymol together with the=20 > external python launcher >=20 > Hello >=20 > I have a question about cmd.quit() behavior. > here goes simplest example: > ----------------------------------------------------- > import __main__ > __main__.pymol_argv =3D [ 'pymol', '-qx' ] >=20 > import pymol > pymol.finish_launching() >=20 > from pymol import cmd >=20 > 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=20 > interrupting the program? > =20 > What I want to be able to do in general is to launch PyMol=20 > from my program, plot some data then close PyMol. Then launch=20 > PyMol again if I need to plot some things again, plot, close,=20 > and so on. All these things related to PyMol are separated=20 > in a class. Calling cmd.quit() simply ruins the whole program. >=20 > Pymol ver. 20beta I think (latest from CVS) >=20 > Help is really appreciated > Thanks > Dmitriy >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course=20 > Free Certification Exam for All Training Attendees Through=20 > End of 2005 Visit http://www.jboss.com/services/certification=20 > for more information _______________________________________________ > PyMOL-users mailing list > PyM...@li... > https://lists.sourceforge.net/lists/listinfo/pymol-users >=20 >=20 >=20 >=20 |