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

Class ToggleAction

      object --+        
               |        
debug.debugmixin --+    
                   |    
        SelectAction --+
                       |
                      ToggleAction
Known Subclasses:

Display a toggle button or toolbar item.

This is used to display a single toggle button that can be displayed in either a menu bar or a toolbar.

The subclass should override the isChecked method to return a boolean indicating whether or not to display a checkmark (for a menu item) or to display the button as toggled-on (for a toolbar).

Instance Methods
 
insertIntoMenu(self, menu)
 
insertIntoToolbar(self, toolbar)
 
isChecked(self)
 
showCheck(self)
 
showEnable(self)

Inherited from SelectAction: __call__, __init__, action, getMenuItemName, getSubIds, getTooltip, initPostHook, initPreHook, isEnabled

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

Class Methods

Inherited from SelectAction: getHelp, setAcceleratorText, worksWithMajorMode

Inherited from debug.debugmixin: dprint

Class Variables

Inherited from 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

insertIntoMenu(self, menu)

 
Overrides: SelectAction.insertIntoMenu

insertIntoToolbar(self, toolbar)

 
Overrides: SelectAction.insertIntoToolbar

showEnable(self)

 
Overrides: SelectAction.showEnable