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

Class MWidgetAction

PyQt4.QtGui.QWidgetAction --+
                            |
                           MWidgetAction

A QAction that performs a Maestro command

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

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

 

Create a MWidgetAction object

Parameters:
  • widget (QWidget) - the widget to be displayed as the menu item
  • menu (QWidget) - 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