Package peppy :: Package actions :: Class OnDemandActionMixin
[frames] | no frames]

Class OnDemandActionMixin

object --+
         |
        OnDemandActionMixin
Known Subclasses:

Mixin to provide on-demand updating as the menubar is opened

On-demand actions don't have to be created ahead of time -- the updateOnDemand method is called immediately before the menu bar entry is opened.

Instance Methods
 
updateOnDemand(self)
Hook called before the menu is displayed.

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

Properties

Inherited from object: __class__

Method Details

updateOnDemand(self)

 

Hook called before the menu is displayed.

This method allows the subclass to catch the menu opening event before it anything is added to the menu bar. When used in combination with a list, the list may be reordered and menu items can be inserted or deleted.