Skip to content

Home News Screenshots Wiki Themes Bugtracker Members Logos Search
  You are not logged in Link icon Log in Link icon Join
You are here: Home » PicoGUI Wiki » cli_python documentation » HelloWorldRecipe » wikipage_view

Log in
 
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()

References

Application, Widget

Status

UpToDateStatus