1 """<title>an example of html within gui</title>"""
3 from pygame.locals import *
5 # the following line is not needed if pgu is installed
6 import sys; sys.path.insert(0, "..")
11 app = gui.Desktop(width=780,height=500)
17 <p>this is normal <b>this is bold</b> <i>this is italic</i> <u>this is underline</u></p>
19 <table border=1 bgcolor='yellow' width=200 align=center>
21 <th bgcolor='#ffffee'>pgu
23 <th bgcolor='green'>green
24 <th bgcolor='blue'>blue
27 <td bgcolor='white' border=1><img src='logo.gif'>
28 <td border=1 style='padding:4px'>things:<br>apples,<br>fire trucks,<br>crabs,<br>and cherries
29 <td border=1 style='padding:4px'>things: <ul>
35 <td border=1 style='padding:4px'>things: <ol>
45 def __init__(self,**params):
46 params.setdefault('cls','desktop')
47 App.__init__(self,**params)
50 <div style='margin: 8px; padding: 8px; border: 1px; border-color: #88ffff; background: #eeffff;' width=700><img src='cuzco.png' align=right>cuzco is my goat. cuzco is my goat. cuzco is my goat. cuzco is my goat. cuzco is my goat. cuzco is my goat. cuzco is my goat. cuzco is my goat. cuzco is my goat. cuzco is my goat. cuzco is my goat. cuzco is my goat. cuzco is my goat. cuzco is my goat. </div>"""
52 ##this example just uses the HTML widget
57 app.connect(gui.QUIT,app.quit,None)