15 lines
No EOL
311 B
Python
15 lines
No EOL
311 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() |