Package peppy :: Package actions :: Module base :: Class BufferBusyActionMixin
[frames] | no frames]

Class BufferBusyActionMixin

object --+
         |
        BufferBusyActionMixin
Known Subclasses:

Mixin to disable an action when the buffer is being modified.

Buffers can be marked as 'busy' if a long-running action is in process in a background thread. This mixin checks the state of the buffer busy flag before allowing it to be enabled in the menu system.

If a subclass needs to supply more information about its enable state, override isActionAvailable instead of isEnabled, or else you lose the buffer busy test.

Instance Methods
 
isEnabled(self)
 
isActionAvailable(self)
Override this instead of isEnabled when using this mixin

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

Properties

Inherited from object: __class__

Method Details

isActionAvailable(self)

 

Override this instead of isEnabled when using this mixin

Provides a hook to isEnabled so subclasses can provide more information about the enabled state if the buffer is not busy.