1 """<title>Containers and more Connections</title>
2 A container is added, and centered a button within that
6 from pygame.locals import *
8 # the following line is not needed if pgu is installed
9 import sys; sys.path.insert(0, "..")
13 ##Using Desktop instead of App provides the GUI with a background.
16 app.connect(gui.QUIT,app.quit,None)
19 ##The container is a table
21 c = gui.Table(width=200,height=120)
24 ##The button CLICK event is connected to the app.close method. The button will fill the whole table cell.
26 e = gui.Button("Quit")
27 e.connect(gui.CLICK,app.quit,None)