Terry, We are very interested in this, but it is outside the scope of PyMOL 1.x. It will definitely be possible in PyMOL 2.x, but we'll need to break the API a bit for that in order to achieve an object-oriented usage paradigm.
To accomplish this with current versions, it is necessary to launch and message PyMOL as an independent process or at least as a singleton component within a Python interpreter that includes a PyQT user interface in a separate window. You can get a graphics-only PyMOL window by launching with command line options -qxiF. You can control window placement with -X -Y # -H # -W # 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 > Terry Jones > Sent: Monday, October 03, 2005 12:16 PM > To: pymol-users@lists.sourceforge.net > Subject: [PyMOL] Embedding pymol > > While I've got your attention.... > > Is it possible to embed a pymol window into a bigger > independent application? > > I am writing some code using PyQt and various other things > (like PyOpenGL, Open Inventor, pivy), and it would be nice to > be able to be able to pop a window with pymol in it (if > that's the right way to put it). So the tk GUI would not be > there, just the PyMol graphics window. > > I have no idea if this is possible, or if it's something that > Warren is even interested in supporting. From my brief look > around at the source tree, it looks like pymol ships with, > and runs(?), its own version of python. Perhaps this is just > packaged up by something like py2app? > > When I do what seems most obvious, putting > > from pymol import cmd > > in a file and running python on it, it tells me there's no > such module as pymol. Maybe this is simply my python path not > including the right thing. > > If it matters, I'm on Mac OS X (10.3.9) but I'm running > python 2.4, not the stock distributed 2.3. Would that stop > me being able to import pymol as above (I mean is it > incompatible, not is the path to pymol unknown, which I > assume is probably the case)? > > BTW, I have almost zero experience with any of these things, > so I apologize if I'm asking basic questions (I did at least > search for the answer to my first question in the list archives). > > Terry > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users > > > >