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

Class Pick3DObjectToggle

 object --+    
          |    
_PickToggle --+
              |
             Pick3DObjectToggle


Class meant to replicate a Maestro pick toggle.  This object allows you to
pick objects from the schrodinger.graphics3d module.  This picker allows you
to pick any object assigned to the picking category argument 'pick_category'

Arguments:
checkbox      - The QCheckBox object for the picking toggle
pick_function - Will be called when a bond is picked. Must be a callable
                function that accepts two arguments (atom numbers)
pick_category - The category of objects to pick, this string should match
                whatever value you passed to the 3D Objects when you
                created them.

The following options are supported:
  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_category, pick_text='Pick an object')
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_category, pick_text='Pick an object')
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)