Package nltk :: Package draw :: Module cfg :: Class ProductionList
[hide private]
[frames] | no frames]

Class ProductionList

source code

   object --+    
            |    
ColorizedList --+
                |
               ProductionList

Instance Methods [hide private]
 
_init_colortags(self, textwidget, options)
Set up any colortags that will be used by this colorized list.
source code
 
_item_repr(self, item)
Return a list of (text, colortag) tuples that make up the colorized representation of the item.
source code

Inherited from ColorizedList: __init__, add_callback, focus, get, grid, mark, markonly, pack, remove_callback, set, unmark, view

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

Class Variables [hide private]
  ARROW = '\xde'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_init_colortags(self, textwidget, options)

source code 

Set up any colortags that will be used by this colorized list. E.g.:

>>> textwidget.tag_config('terminal', foreground='black')
Overrides: ColorizedList._init_colortags
(inherited documentation)

_item_repr(self, item)

source code 

Return a list of (text, colortag) tuples that make up the colorized representation of the item. Colorized representations may not span multiple lines. I.e., the text strings returned may not contain newline characters.

Overrides: ColorizedList._item_repr
(inherited documentation)