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

Class MAction

PyQt4.QtGui.QAction --+
                      |
                     MAction

A QAction that performs a Maestro command

Instance Methods [hide private]
 
__init__(self, name, menu, asl=None, owner=None, tooltip=None)
Create a MAction object
 
command(self)
Must be defined in subclasses
Method Details [hide private]

__init__(self, name, menu, asl=None, owner=None, tooltip=None)
(Constructor)

 

Create a MAction object

Parameters:
  • name (str) - the string that will appear in the menu for this action
  • menu (QWidget or None) - the QWidget that owns this action, if a QMenu, the title property may be used when determining the command function when the action is triggered.
  • asl (str) - the asl this action will apply to. If not supplied, the asl is taken as the menu asl
  • owner (ToggleTableObject) - the object this Action will operate on
  • tooltip (str) - the string that will appear as a tooltip for this action