Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / simulator / pgu-0.18 / examples / gui1.py
1 """<title>Hello World</title>
2 The simplest possble gui app that can be made.
3 Unfortunately, you have to CTRL-C from the command line to quit it.
4 GUI will initialize the screen for you.
5 """
6
7 import pygame
8 from pygame.locals import *
9
10 # the following line is not needed if pgu is installed
11 import sys; sys.path.insert(0, "..")
12
13 from pgu import gui
14
15 ##::
16 app = gui.App()
17
18 e = gui.Button("Hello World")
19
20 app.connect(gui.QUIT, app.quit)
21
22 app.run(e)
23 ##

UCC git Repository :: git.ucc.asn.au