Package peppy :: Module minor :: Class MinorModeList
[frames] | no frames]

Class MinorModeList

      object --+    
               |    
debug.debugmixin --+
                   |
                  MinorModeList

Container holding a list of minor modes attached to a parent major mode

Instance Methods
 
__init__(self, parent, mgr, mode=None, initial=[])
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
getKeywordOrder(self)
Return the sort order of the minor modes.
 
getWindow(self, keyword)
Get the minor mode window given its keyword
 
isVisible(self, index)
Is the minor mode specified by the index shown?
 
toggle(self, index)
Toggle the shown state, or create the minor mode if necessary.
 
create(self, keyword)
Create the minor mode.
 
getActive(self)
Get a list of all created minor modes.
 
deleteAll(self)
Delete all minor modes, removing the windows if they exist.

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

Class Methods

Inherited from debug.debugmixin: dprint

Class Variables

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from object: __class__

Method Details

__init__(self, parent, mgr, mode=None, initial=[])
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

isVisible(self, index)

 

Is the minor mode specified by the index shown?

This is used in the menu bar code to present a check list of active modes.

toggle(self, index)

 

Toggle the shown state, or create the minor mode if necessary.

Minor modes are created on demand if not speficied as one of the modes to load at mode startup time. If an entry doesn't exist and it is attempted to be toggled, it is created and shown.

create(self, keyword)

 

Create the minor mode.

Create the minor mode given its keyword. It is shown automatically.