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

Class MWidgetAction

       object --+                    
                |                    
sip.simplewrapper --+                
                    |                
          sip.wrapper --+            
                        |            
     PyQt4.QtCore.QObject --+        
                            |        
          PyQt4.QtGui.QAction --+    
                                |    
        PyQt4.QtGui.QWidgetAction --+
                                    |
                                   MWidgetAction
Known Subclasses:

A QAction that performs a Maestro command

Nested Classes [hide private]

Inherited from PyQt4.QtGui.QAction: ActionEvent, MenuRole, Priority, SoftKeyRole

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

Inherited from PyQt4.QtGui.QWidgetAction: createWidget, createdWidgets, defaultWidget, deleteWidget, event, eventFilter, releaseWidget, requestWidget, setDefaultWidget

Inherited from PyQt4.QtGui.QAction: actionGroup, activate, associatedGraphicsWidgets, associatedWidgets, autoRepeat, changed, data, font, hover, hovered, icon, iconText, isCheckable, isChecked, isEnabled, isIconVisibleInMenu, isSeparator, isVisible, menu, menuRole, parentWidget, priority, setActionGroup, setAutoRepeat, setCheckable, setChecked, setData, setDisabled, setEnabled, setFont, setIcon, setIconText, setIconVisibleInMenu, setMenu, setMenuRole, setPriority, setSeparator, setShortcut, setShortcutContext, setShortcuts, setSoftKeyRole, setStatusTip, setText, setToolTip, setVisible, setWhatsThis, shortcut, shortcutContext, shortcuts, showStatusText, softKeyRole, statusTip, text, toggle, toggled, toolTip, trigger, triggered, whatsThis

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from sip.simplewrapper: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from PyQt4.QtGui.QAction: AboutQtRole, AboutRole, ApplicationSpecificRole, HighPriority, Hover, LowPriority, NegativeSoftKey, NoRole, NoSoftKey, NormalPriority, PositiveSoftKey, PreferencesRole, QuitRole, SelectSoftKey, TextHeuristicRole, Trigger

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Properties [hide private]

Inherited from object: __class__

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
Overrides: object.__init__