Package peppy :: Package plugins :: Module debug_classes :: Class DebugClass
[frames] | no frames]

Class DebugClass

      object --+                
               |                
debug.debugmixin --+            
                   |            
actions.SelectAction --+        
                       |        
      actions.ListAction --+    
                           |    
    actions.ToggleListAction --+
                               |
                              DebugClass

A multi-entry menu list that allows individual toggling of debug printing for classes.

All frames will share the same list, which makes sense since the debugging is controlled by class attributes.

Nested Classes

Inherited from actions.ListAction: IdCache

Instance Methods
 
getHash(self)
 
getItems(self)
 
isChecked(self, index)
Override this to show whether the index is checked or not.
 
action(self, index=-1, multiplier=1)
Turn on or off the debug logging for the selected class

Inherited from actions.ToggleListAction: __init__, showCheck, showEnable

Inherited from actions.ListAction: dynamic, getIcons, getIndexOfId, getSubIds, insertIntoMenu

Inherited from actions.SelectAction: __call__, getMenuItemName, getTooltip, initPostHook, initPreHook, insertIntoToolbar, isEnabled

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

Class Methods

Inherited from actions.SelectAction: getHelp, setAcceleratorText, worksWithMajorMode

Inherited from debug.debugmixin: dprint

Static Methods
 
append(kls, text=None)
Add a class to the list of entries
 
setup(msg)
Class Variables
  debuglevel = 0
  name = 'DebugClassMenu'
This is the name of the menu entry as it appears in the menu bar.
  empty = '< list of classes >'
  tooltip = 'Turn on/off debugging for listed classes'
Tooltip that is displayed when the mouse is hovering over the menu entry.
  default_menu = 'Debug'
The default menu location is specified here as a tuple containing the menu path (separated by / characters) and a number between 1 and 1000 representing the position within the menu.
  categories = False
  inline = True
  itemlist = []

Inherited from actions.ListAction: abbrev_width, localize_items, menumax

Inherited from actions.SelectAction: alias, default_toolbar, global_id, icon, key_bindings, keyboard, stock_id

Properties

Inherited from object: __class__

Method Details

append(kls, text=None)
Static Method

 

Add a class to the list of entries

Parameters:
  • kls (class) - class
  • text (text) - (optional) name of class

getHash(self)

 
Overrides: actions.ListAction.getHash

getItems(self)

 
Overrides: actions.ListAction.getItems

isChecked(self, index)

 

Override this to show whether the index is checked or not.

Parameters:
  • index - the position in the list (numbered from zero)
Returns:
True if checked.
Overrides: actions.ToggleListAction.isChecked
(inherited documentation)

action(self, index=-1, multiplier=1)

 

Turn on or off the debug logging for the selected class

Parameters:
  • index - The index of the item in the list. This is only useful for list or radio items.
  • multiplier - the multiplier supplied by the keyboard handler. The keyboard handler allows for emacs-style repeat commands. For some actions, it makes sense to allow repetition of the command. For instance, in a command that uppercases words, the multiplier could be 4, would mean that the next 4 words get uppercased. The default is 1.
Overrides: actions.SelectAction.action