Re: [PyMOL] Embedding pymol

2005-10-03 Thread pymol
On Mon, 3 Oct 2005, Terry Jones wrote: > Is it possible to embed a pymol window into a bigger independent > application? "Embed"? No. At least, not if you want the pymol window to act as a widget that can be embedded in a frame of some sort. The last time I used pymol was version 0.87, so the in

RE: [PyMOL] Embedding pymol

2005-10-03 Thread Warren DeLano
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

[PyMOL] Embedding pymol

2005-10-03 Thread Terry Jones
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 t

RE: [PyMOL] Using the Pymol Run command

2005-10-03 Thread Warren DeLano
> | NameError: name 'a' is not defined > > I guess I understand what's going on here. I'm happier just > calling the command line run or execfile() myself. Terry, PyMOL command parsing takes precedence over Python, so a = 1 Is interpreted as a call to the command "a" with arguments "=" and "1

RE: [PyMOL] Using the Pymol Run command

2005-10-03 Thread Terry Jones
Hi Warren and Gilleain - thanks for your rapid answers. For now I am simply using 'run' on the command line and it works fine. | Gilleain is right on about the run command. On Windows and linux, you | can also create .pym files that will specifically open into PyMOL. I don't understand this. |

RE: [PyMOL] pymol problems with python after FC4 update

2005-10-03 Thread Warren DeLano
Stuart, It looks to me like you've got a mixed install with potentially old/incompatible files hanging around. For starters, see if the latest linux standalone build works http://delsci.com/beta pymol-0_99beta14-bin-linux-x86-glibc23.tgz That should help enable you to separate general PyMOL

RE: [PyMOL] linux configuration

2005-10-03 Thread Warren DeLano
Andrew, What does PYMOL spit out on startup? Is it binding to the OpenGL drivers, or to Mesa? Also, you might set use_display_lists to take advantage of graphics card memory, etc. For example, on my dual Opteron/nVidia FX1100 based system, this option gives a 3X speedup in rendering. Cheers,

[PyMOL] linux configuration

2005-10-03 Thread Andrew Waight
Hi all and thanks to Warren for such an awesome program. Just switched my lappy to Fedora 4 and I have some questions regarding whether or not my configuration is correct. For some reason PyMol has been running a lot slower in Linux than previously in Windows, especially when resizing the screen o

RE: [PyMOL] Using the Pymol Run command

2005-10-03 Thread Warren DeLano
> Is there some recommended way to run a file of code? Gilleain is right on about the run command. On Windows and linux, you can also create .pym files that will specifically open into PyMOL. Another alternative is to use Python import capability. And of course, within pml files you can use blo

Re: [PyMOL] Using the Pymol Run command

2005-10-03 Thread Gilleain Torrance
Hi, You can run arbitrary python programs using the command line "run" command: run path_to_programs/python_program.py The File->Run menu seems to prefer .pml files (that is, the dialog filters out all but these). And I think that pml files are meant for line by line interpreting.

[PyMOL] Using the Pymol Run command

2005-10-03 Thread Terry Jones
Hi all I've written some python code that I want to run from inside pymol using the File/Run command. After some playing around looking at error messages and the pymol source, I saw that pymol is reading my file line by line and passing each line to eval. So if my file contains lines that are eac