Package schrodinger :: Package application :: Package bioluminate :: Module pml_menus :: Class ToggleState
[hide private]
[frames] | no frames]

Class ToggleState

PyQt4.QtGui.QAction --+    
                      |    
                MAction --+
                          |
                         ToggleState

A MAction that toggles the enabled/disabled state of an object

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Create a ToggleState object
 
command(self)
Toggle the state of the the owner object.
Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

 

Create a ToggleState object

See parent class for argument documentation

Parameters:
  • enable (bool) - True if this action should enable the owner object, False if it should disable it
  • visible_objects (bool) - True if this action acts on all visible objects, False if it acts on some other set
Overrides: MAction.__init__

command(self)

 

Toggle the state of the the owner object.

Overrides: MAction.command