Mercurial > boomslang
comparison pyntnclick/widgets/listbox.py @ 639:fdc63049b08c pyntnclick
Add game_description to the widgets,, since it looks a useful thing to do
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sun, 12 Feb 2012 01:31:14 +0200 |
parents | 1aac5a3b17e1 |
children | efa58c92b304 |
comparison
equal
deleted
inserted
replaced
638:d1ec9e739e23 | 639:fdc63049b08c |
---|---|
3 from pyntnclick.widgets.text import TextWidget, TextButton | 3 from pyntnclick.widgets.text import TextWidget, TextButton |
4 | 4 |
5 | 5 |
6 class ListBox(Box): | 6 class ListBox(Box): |
7 | 7 |
8 def __init__(self, rect, text, widget_list, page_length=8): | 8 def __init__(self, rect, gd, text, widget_list, page_length=8): |
9 super(ListBox, self).__init__(rect) | 9 super(ListBox, self).__init__(rect, gd) |
10 self.message = TextWidget(rect, text) | 10 self.message = TextWidget(rect, text) |
11 self.toolbar = ToolListWidget(rect, widget_list, page_length) | 11 self.toolbar = ToolListWidget(rect, widget_list, page_length) |
12 self.prepare() | 12 self.prepare() |
13 self.modal = True | 13 self.modal = True |
14 | 14 |