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

Class PlayingAction

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

Base class for actions that are valid only while playing music.

Anything that subclasses this action only makes sense while the server is playing (or paused).

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)