class documentation
class ProductionList(ColorizedList): (source)
Constructor: ProductionList(parent, items, **options)
Undocumented
Constant | ARROW |
Undocumented |
Method | _init |
Set up any colortags that will be used by this colorized list. E.g.: |
Method | _item |
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. |
Inherited from ColorizedList
:
Method | __init__ |
Construct a new list. |
Method | add |
Register a callback function with the list. This function will be called whenever the given event occurs. |
Method | focus |
Undocumented |
Method | get |
No summary |
Method | grid |
Undocumented |
Method | mark |
Highlight the given item. :raise ValueError: If item is not contained in the list. |
Method | markonly |
Remove any current highlighting, and mark the given item. :raise ValueError: If item is not contained in the list. |
Method | pack |
Undocumented |
Method | remove |
Deregister a callback function. If func is none, then all callbacks are removed for the given event. |
Method | set |
Modify the list of items contained by this list. |
Method | unmark |
Remove highlighting from the given item; or from every item, if no item is given. :raise ValueError: If item is not contained in the list. :raise KeyError: If item is not marked. |
Method | view |
Adjust the view such that the given item is visible. If the item is already visible, then do nothing. |
Method | _buttonpress |
Undocumented |
Method | _fire |
Undocumented |
Method | _init |
Undocumented |
Method | _keypress |
Undocumented |
Instance Variable | _callbacks |
Undocumented |
Instance Variable | _itemframe |
Undocumented |
Instance Variable | _items |
Undocumented |
Instance Variable | _marks |
Undocumented |
Instance Variable | _parent |
Undocumented |
Instance Variable | _textscroll |
Undocumented |
Instance Variable | _textwidget |
Undocumented |
Set up any colortags that will be used by this colorized list. E.g.:
>>> textwidget.tag_config('terminal', foreground='black')
overrides
nltk.draw.util.ColorizedList._item_repr
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.