All pastes #364616 Raw Edit

Miscellany

public text v1 · immutable
#364616 ·published 2007-02-20 08:24 UTC
rendered paste body
#!/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()
~                                                                               
~                                                                               
~                                                                               
~