Package schrodinger :: Package ui :: Module picking :: Class PickAtomToggle
[hide private]
[frames] | no frames]

Class PickAtomToggle

 object --+    
          |    
_PickToggle --+
              |
             PickAtomToggle


Class meant to replicate Maestro atom pick toggles.
Takes an argument 'checkbox' that represents the checkbox for the
picking toggle.

The following options are supported:
  pick_function - will be called when an atom is picked. Must be a callable
                  function that accepts one argument (atom number)
  pick_text     - text that will be displayed in Maestro's status area
                  (default "Pick an atom")

Instance Methods [hide private]
 
__init__(self, checkbox, pick_function, pick_text='Pick an atom')
x.__init__(...) initializes x; see help(type(x)) for signature
 
_command(self)
Gets called when checkbutton is checked or unchecked

Inherited from _PickToggle: fullCommand, on, start, stop

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, checkbox, pick_function, pick_text='Pick an atom')
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)