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.

Instance Methods [hide private]
 
__init__(self, checkbox, pick_function, pick_text='Pick an atom', enable_lasso=False, maestroless_options=None)
The following options are supported:
 
_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', enable_lasso=False, maestroless_options=None)
(Constructor)

 

The following options are supported:

@type checkbox: QCheckBox instance.
@param checkbox: Checkbox to hook up the class to.

@type pick_function: callable
@param pick_function: will be called when an atom is picked. Must be
    a callable function that accepts one argument (atom number, or ASL,
    if enable_lasso is True).

@type pick_text: str
@param pick_text: Text that will be displayed in Maestro's status area
    (default "Pick an atom").

@type enable_lasso=False
@param enable_lasso: Whether to allow multiple atoms to be selected
    simultaneously via lasso.

@param maestroless_options: Options to use for picking outside of Maestro or None
@type maestroless_options: L{MaestrolessPickOptions} or None

Overrides: object.__init__