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 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 suggested in the thread I cannot get the example code to
 work.

 I really actually have no clue where to start, but all I need is a simple
 molecule viewer that I can embed in a GUI frame. PyMol seems like the right
 choice but I for some reason cannot get it to work.

 Any tips? Prior experience?

 Thanks in advance!

 Regards,

 Raj Mirpuri
 Research Assistant
 Roberts Group
 California Institute of Technology
 ***

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

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 alessia.visco...@gmail.com

 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 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 suggested in the thread I cannot get the example code to
 work.

 I really actually have no clue where to start, but all I need is a simple
 molecule viewer that I can embed in a GUI frame. PyMol seems like the
 right
 choice but I for some reason cannot get it to work.

 Any tips? Prior experience?

 Thanks in advance!

 Regards,

 Raj Mirpuri
 Research Assistant
 Roberts Group
 California Institute of Technology
 ***




 --
 Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
 Discover the easy way to master current and previous Microsoft technologies
 and advance your career. Get an incredible 1,500+ hours of step-by-step
 tutorial videos with LearnDevNow. Subscribe today and save!
 http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
 ___
 PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
 Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
 Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net




-- 
Andrew Gonchar
Андрей Гончар
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

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
alessia.visco...@gmail.com 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://github.com/evonove/moply

the only pre-requisite is having PyMol installed in your system, then
run qmake, make and try the playground executable.

Cheers

-- 
Massimiliano Pippi
Evonove Srl
ma...@evonove.it :: https://evonove.it :: http://twitter.com/evonove

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


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 ma...@evonove.it wrote:

 On Wed, Sep 4, 2013 at 12:48 PM, Alessia Visconti

 if you need to embed PyMol in a C++ Qt application you can take a look at
 this:

 https://github.com/evonove/moply

 the only pre-requisite is having PyMol installed in your system, then
 run qmake, make and try the playground executable.

 Cheers

 --
 Massimiliano Pippi
 Evonove Srl
 ma...@evonove.it :: https://evonove.it :: http://twitter.com/evonove

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

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
alessia.visco...@gmail.com 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 application is far more easy :-)
Here is an example, same requirements as moply plus PyQt4:
https://gist.github.com/masci/6437112

Cheers

-- 
Massimiliano Pippi
Evonove Srl
ma...@evonove.it :: https://evonove.it :: http://twitter.com/evonove

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net