Documentation
Overview
Scripts
tileedit
|
leveledit
|
tganew
|
levelfancy
Reference
algo
|
ani
|
engine
|
fonts
|
high
|
html
|
layout
|
text
|
timer
|
vid
Tutorials
1
|
2
|
3
|
4
|
5
GUI Ref.
theme
|
style
|
widget
|
surface
|
const
Containers
container
|
app
|
table
|
document
|
area
Forms
form
|
group
Widgets
basic
|
button
|
input
|
keysym
|
slider
|
select
|
misc
Other
menus
|
dialog
Tutorials
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
gui.basic
sections
Spacer
Color
Label
Label.paint
Label.set_text
Label.set_font
Image
These widgets are all grouped together because they are non-interactive widgets.
Spacer
An invisible space widget.
Color
A widget that renders as a solid block of color. Note the color can be changed by setting the 'value' field, and the widget will automatically be repainted, eg: c = Color() c.value = (255,0,0) c.value = (0,255,0)
Label
A text label widget.
Label.paint
Renders the label onto the given surface in the upper-left corner.
Label.set_text
Set the text of this label.
Label.set_font
Set the font used to render this label.
Image
An image widget. The constructor takes a file name or a pygame surface.
all content (c) 2006 Phil Hassey -
Phil's pyGame Utilities