Hi Boris,

the second argument must be a function reference, not a function call.
Basically means: no parenthesis. So this works:

cmd.set_key('ALT-r', cmd.reset)

Cheers,
  Thomas

Boris Kheyfets wrote, On 08/12/13 10:49:
> Hello PyMOL users,
> 
> I need to bind reset to a key.
> I tried both PyMOL API way:
> cmd.set_key('ALT-r', cmd.reset())
> 
> and PyMOL commad way:
> cmd.set_key('ALT-r', cmd.do("reset")
> 
> But it doesn't work.
> I bind various things to keys, so I'm certain of the procedure.
> How could I bind reset to a key?
> I'm using 1.6.0.0
> _____________
> With respect,
> Boris.

-- 
Thomas Holder
PyMOL Developer
Schrödinger Contractor

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/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

Reply via email to