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

Class PickBondToggle

 object --+    
          |    
_PickToggle --+
              |
             PickBondToggle


Class meant to replicate Maestro bond pick toggles.

The argument 'checkbox' represents the QCheckBox object for the
picking toggle

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

Instance Methods [hide private]
 
__init__(self, checkbox, pick_function, pick_text='Pick a bond')
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 a bond')
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)