The second version of hello world is based on the hildon framework, which lets you manage the look and themes of the maemo environment, and access the toolbar and menus.

#!/usr/bin/env python2.5

import gtk
import hildon

window = hildon.Window()
window.connect("destroy", gtk.main_quit)
label = gtk.Label("Hola mundo!")
window.add(label)

label.show()
window.show()

gtk.main()

Screenshot of the script running:

Hello World from Maemo