vssg/testui2.py
2007-01-24 04:08:37 +00:00

17 lines
No EOL
323 B
Python

# Hello World example.
from ocempgui.widgets import *
# Initialize the drawing window.
re = Renderer ()
re.create_screen (640, 480)
re.title = "Hello World"
re.color = (250, 250, 250)
button = Button ("Hello World")
button.topleft = (10, 10)
re.add_widget (button)
# Start the main rendering loop.
re.start()
re.start()