#!/usr/bin/python import pygtk pygtk.require("2.0") import gtk import gnomeapplet class MyPyApplet (gnomeapplet.Applet): def __init__ (self): gnomeapplet.Applet.__init__ (self, "ClockApplet/0") def do_initialise (self): print "Hello. I am here." self.set_text ("Hello PyWorld") me = MyPyApplet() me.show_all() gtk.main()