Re: [PyMOL] Embedding PyMol in a custom designed GUI

2013-09-04 Thread Massimiliano Pippi
On Wed, Sep 4, 2013 at 2:29 PM, Alessia Visconti wrote: > This is a good news (and starting point), thanks for the tip! > On the other hand I need to translate all my code in C++. Any thought of > making a version for a Python Qt application? ;) > Good for you, embedding PyMol in a PyQt applicatio

Re: [PyMOL] Embedding PyMol in a custom designed GUI

2013-09-04 Thread Alessia Visconti
This is a good news (and starting point), thanks for the tip! On the other hand I need to translate all my code in C++. Any thought of making a version for a Python Qt application? ;) Cheers, Alessia On 4 September 2013 13:18, Massimiliano Pippi wrote: > On Wed, Sep 4, 2013 at 12:48 PM, Alessi

Re: [PyMOL] Embedding PyMol in a custom designed GUI

2013-09-04 Thread Massimiliano Pippi
On Wed, Sep 4, 2013 at 12:48 PM, Alessia Visconti wrote: > Hi all, > as Raj, I'm also wondering if there is any way to embed PyMOL in my PyQt4 > GUI. > Does anyone has any suggestion about where/how to start? > if you need to embed PyMol in a C++ Qt application you can take a look at this: https:

Re: [PyMOL] Embedding PyMol in a custom designed GUI

2013-09-04 Thread Андрей Гончар
Hi Try to run self.pymolInstance.finish_launching() after self.pymolInstance.start() 2013/9/4 Alessia Visconti > Hi all, > as Raj, I'm also wondering if there is any way to embed PyMOL in my PyQt4 > GUI. > Does anyone has any suggestion about where/how to start? > > Thanks in advance, > Aless

Re: [PyMOL] Embedding PyMol in a custom designed GUI

2013-09-04 Thread Alessia Visconti
Hi all, as Raj, I'm also wondering if there is any way to embed PyMOL in my PyQt4 GUI. Does anyone has any suggestion about where/how to start? Thanks in advance, Alessia > Hello all, > > I have recently been looking for tips or help on embedding PyMol into a GUI > built upon Qt4. I looked at th

[PyMOL] Embedding PyMol in a custom designed GUI

2013-07-17 Thread Suraj Mirpuri
Hello all, I have recently been looking for tips or help on embedding PyMol into a GUI built upon Qt4. I looked at this post from years ago: http://sourceforge.net/mailarchive/message.php?msg_id=27413273 However on newer versions of pymol I get the same GLUT error and on the earlier version sug

Re: [PyMOL] Embedding PyMOL

2011-10-06 Thread Dan O'Donovan
> First is that you need to call pymol.start() before calling any of the > pymol.cmd methods. Thanks Guido and Jason - this did indeed get things working for me. > By the way, here is a screenshot of a Qt based app I did that uses embedded > pymol. That looks pretty cool - very impressive! I

Re: [PyMOL] Embedding PyMOL

2011-10-06 Thread Jason Ferrara
Hi Dan, I see two issues. First is that you need to call pymol.start() before calling any of the pymol.cmd methods. Second is that PyMOL 1.4 attempts OpenGL shader initialization in start(), even if you're not using the shaders. With PyMOL 1.3 your code below would probably work once you adde

Re: [PyMOL] Embedding PyMOL

2011-10-06 Thread Guido Wagner
Dear Dan, for me this sample program works: import sys sys.path.append("/home/guido/pymol1.3/pymol-1.3r2/modules") from OpenGL.GL import * from OpenGL.GLU import * from PyQt4 import QtGui from PyQt4.QtOpenGL import * from PyQt4.Qt import Qt from PyQt4 import QtCore import pymol2 class Pym

[PyMOL] Embedding PyMOL

2011-10-05 Thread Dan O'Donovan
Dear All, I read with interest Jason Ferrara's post concerning embedding PyMOL in a QT app (back in January http://www.mail-archive.com/pymol-users@lists.sourceforge.net/msg08607.html ). I've spent a short time experimenting and have encountered a problem or two - I was wondering if any insigh

RE: [PyMOL] Embedding pymol

2005-10-04 Thread Warren DeLano
> 2 years ago I was involved with a project where we only > wanted to use pymol as a rendering widget, but it was > impossible. Our prototype used pymol's separate window, but I > recommended that the project look for another solution > because my impression was that the pymol project was more

Re: [PyMOL] Embedding pymol

2005-10-04 Thread Filipe Maia
While I've got your attention Is it possible to embed a pymol window into a bigger independent application? I've written a PymolQt C++ class that tries to put pymol inside a QWidget and replaced the glut input functions by Qt stuff. I had to do some changes to pymol to make this work an

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
e.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),

[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