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

type ProductionList

source code

        object --+    
                 |    
util.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 util.ColorizedList: __init__, add_callback, focus, get, grid, mark, markonly, pack, remove_callback, set, unmark, view

Class Variables [hide private]
  ARROW = '\xde'
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: util.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: util.ColorizedList._item_repr
(inherited documentation)