Re: [PyMOL] Wizard Measurement

2010-09-05 Thread Michael Lerner
Hi Martin,

I find that the easiest way to recreate things like this is with cmd.do.
cmd.do('wizard measurement') is identical to typing 'wizard measurement'
from the command line.

In this particular case, it looks to me like just calling
cmd.wizard('measurement') works. Did you find problems when you didn't call
refresh_wizard?

Thanks,

-Michael

On Sat, Sep 4, 2010 at 12:40 PM, Martin Hediger ma@bluewin.ch wrote:

  Dear All
 I'm trying to write a littel function that allows for a short cut to
 invoke the wizard measurement. The idea is, that instead of having to
 open the GUI menueMeasurement or typing wizard measurement, I would
 like to be able to just type mes and have the measurement tool-box
 available.
 Observing what happens in the log-file when doing this shows that two
 things happen:

 wizard measurement
 refresh_wizard


 I figured out, that I can write cmd.wizard(measurement) into the
 function definition (called mes, in mes.py), and the measurement box
 appears. What I cant figure out is how to implement the refreshment of
 the wizard using the PyMOL-API.
 Can someone point this out to me?

 Thanks for any help on this, btw. the same thing would kind of be nice
 for mutagenesis.

 Martin


 --
 This SF.net Dev2Dev email is sponsored by:

 Show off your parallel programming skills.
 Enter the Intel(R) Threading Challenge 2010.
 http://p.sf.net/sfu/intel-thread-sfd
 ___
 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




-- 
Michael Lerner, Ph.D.
IRTA Postdoctoral Fellow
Laboratory of Computational Biology NIH/NHLBI
5635 Fishers Lane, Room T909, MSC 9314
Rockville, MD 20852 (UPS/FedEx/Reality)
Bethesda MD 20892-9314 (USPS)
--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd___
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

[PyMOL] Wizard Measurement

2010-09-04 Thread Martin Hediger
  Dear All
I'm trying to write a littel function that allows for a short cut to 
invoke the wizard measurement. The idea is, that instead of having to 
open the GUI menueMeasurement or typing wizard measurement, I would 
like to be able to just type mes and have the measurement tool-box 
available.
Observing what happens in the log-file when doing this shows that two 
things happen:

wizard measurement
refresh_wizard


I figured out, that I can write cmd.wizard(measurement) into the 
function definition (called mes, in mes.py), and the measurement box 
appears. What I cant figure out is how to implement the refreshment of 
the wizard using the PyMOL-API.
Can someone point this out to me?

Thanks for any help on this, btw. the same thing would kind of be nice 
for mutagenesis.

Martin

--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
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