Package peppy :: Package plugins :: Module mpd_major_mode :: Class ConnectedAction
[frames] | no frames]

Class ConnectedAction

          object --+    
                   |    
      MPDActionMixin --+
                       |
      object --+       |
               |       |
debug.debugmixin --+   |
                   |   |
actions.SelectAction --+
                       |
                      ConnectedAction

Base class for actions that only need a working mpd.

Anything that subclasses this action can still function regardless of the play/pause state of the server.

Instance Methods
 
isEnabled(self)
Override this to provide the enable/disable state of the item.

Inherited from actions.SelectAction: __call__, __init__, action, getMenuItemName, getSubIds, getTooltip, initPostHook, initPreHook, insertIntoMenu, insertIntoToolbar, showEnable

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods

Inherited from MPDActionMixin: worksWithMajorMode

Inherited from actions.SelectAction: getHelp, setAcceleratorText

Inherited from debug.debugmixin: dprint

Class Variables

Inherited from actions.SelectAction: alias, default_menu, default_toolbar, global_id, icon, key_bindings, keyboard, name, stock_id, tooltip

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from object: __class__

Method Details

isEnabled(self)

 

Override this to provide the enable/disable state of the item.

The menu system will call this method before the menu is drawn (or periodically during idle time for toolbar items) to determine whether or not the item should be disabled (grayed out).

Default is to always enable the item.

Overrides: actions.SelectAction.isEnabled
(inherited documentation)