gnome applet
public python v1 · immuable#!/usr/bin/env pythonimport pygtkpygtk.require('2.0')import gtkimport gnomeappletdef sample_factory(applet, iid): label = gtk.Label("Success!") applet.add(label) applet.show_all() return gtk.TRUEgnome.applet.bonobo_factory("OAFIID:GNOME_PysampleApplet_Factory", gnome.applet.Applet.__gtype__, "hello", "0", sample_factory)