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

Log in
FrontPage » CodingRecipes »


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/ (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'


Application, Widget