Mark, A syntactic gotcha: Python tuples require a comma even if there is only one element:
Tuple ('joe_closed',) is distinct from expression ('joe_closed') which just equals 'joe_closed' Cheers, Warren -- Warren L. DeLano, Ph.D. Principal Scientist . DeLano Scientific LLC . 400 Oyster Point Blvd., Suite 213 . South San Francisco, CA 94080 USA . Biz:(650)-872-0942 Tech:(650)-872-0834 . Fax:(650)-872-0273 Cell:(650)-346-1154 . mailto:war...@delsci.com > -----Original Message----- > From: pymol-users-ad...@lists.sourceforge.net > [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of > Mark A Saper > Sent: Wednesday, March 01, 2006 12:57 PM > To: Pymol > Subject: [PyMOL] set_key > > Why does this work: > > from pymol import cmd > cmd.set_key ('CTRL-A', cmd.hide, ('sticks', 'joe_closed' ) ) > > and this doesn't? > > from pymol import cmd > cmd.set_key ('CTRL-A', cmd.disable, ('joe_closed') ) > > _________________________________ > Mark A. Saper, Ph.D. > Associate Professor of Biological Chemistry Biophysics > Research Division, University of Michigan Chemistry Building > Room 3040 930 N University Ave Ann Arbor MI 48109-1055 U.S.A. > > sa...@umich.edu (734) 764-3353 fax (734) 764-3323 > http://www.biochem.med.umich.edu/biochem/research/profiles/saper.html > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking > scripting language that extends applications into web and > mobile media. Attend the live webcast and join the prime > developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720& dat=121642 > _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users > > > >