[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Widget Code
At <http://www.xepher.net/~kschnee/widgets2d.zip> is my "widget" code.
It's not very good, but it's very simple:
panel = Panel()
my_widget = Widget()
panel.AddWidget(my_widget)
and during the drawing loop:
panel.Display()
This system can handle clickable buttons, a multi-line text display, a
text input box, and a static block of text. Maybe it will be useful to
someone.
Kris