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

Class PickTorsionToggle

 object --+    
          |    
_PickToggle --+
              |
             PickTorsionToggle

Class for creating a picker that allows the user to define a torsion by sequentually picking 4 atoms. Takes an argument 'checkbox' that represents the checkbox for the picking toggle.

Instance Methods [hide private]
 
__init__(self, checkbox, pick_function, pick_text='Pick 4 atoms to define a torsion')
x.__init__(...) initializes x; see help(type(x)) for signature
 
_atomPicked(self, anum)
Gets called when an atom is picked.
 
_command(self)
Gets called when checkbutton is checked or unchecked
 
_workspaceChanged(self, changed)
Called when the Workspace changed event is received.

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 4 atoms to define a torsion')
(Constructor)

 

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

Parameters:
  • checkbox (QtWidgets.QCheckBox) - Checkbox widget to convert into a pick toggle.
  • pick_function (function) - This function is called when the last atom defining is picked. Must be a callable that accepts 4 arguments (atom numbers).
  • pick_text (str) - Text to display in Maestro's status area while the toggle is checked (default: "Pick 4 atoms to define a torsion").
Overrides: object.__init__