FrontPage
»
CodingRecipes
»
HelloWorldRecipe
The simplest example we dare to show (to get even simpler, just remove lines 4 to 7 where you create the label and set its properties). This is in the distribution as sample/Hello_World1.py (or online via viewcvs - guaranteed up-to-date).
This is a straight port from apps/hello/hello.c:
import PicoGUI
# for PG_APP_TOOLBAR you'd use PicoGUI.ToolbarApp()
app = PicoGUI.Application('Greetings')
l = app.addWidget('Label')
l.side = 'All'
l.text = 'Hello, World!'
l.font = ':24:Bold'
app.run()