Miscellany
public text v1 · immutable#!/usr/bin/python
import pygtk
pygtk.require("2.0")
import gtk
import gnomeapplet
import gobject
class MyPyApplet (gnomeapplet.Applet):
__gtype_name__ = 'MyPyApplet'
def do_initialise (self):
self.set_text ("Hello PyWorld")
me = gobject.new(MyPyApplet, applet_id="ClockApplet/0")
me.show_all()
gtk.main()
~
~
~
~