dice.client package¶
Submodules¶
dice.client.panel module¶
-
class
dice.client.panel.InputPanel(screen, height, width, write_callback, cancel_callback, x=0, y=0)[source]¶ Bases:
dice.client.panel._PanelBaseCurses panel allows get input from keyboard.
-
class
dice.client.panel.ListPanel(screen, height, width, x=0, y=0, format_str='')[source]¶ Bases:
dice.client.panel._PanelBaseCurses panel contains list of entries.
-
add_item(bundle, catalog='')[source]¶ Add an item the list panel.
Parameters: - bundle – Content of added item.
- catalog – Catalog of added item.
-
draw(active=False)[source]¶ Draw the list panel.
Parameters: active – If set to true, draw the panel with surrounding box.
-
on_keypress(key)[source]¶ Event handler when keypress event received by the panel.
Parameters: key – Key being pressed.
-
-
class
dice.client.panel.TextPanel(screen, height, width, x=0, y=0)[source]¶ Bases:
dice.client.panel._PanelBaseCurses panel contains only block of text.
-
draw(active=False)[source]¶ Draw the text panel.
Parameters: active – If set to true, draw the panel with surrounding box.
-