Gnome uses a factory to create your applet instance
def factory(container, iid): applet = Applet(container) container.show_all() return gtk.TRUE
You then call the Gnome bonobo factory methods
gnome.applet.bonobo_factory("OAFIID:GNOME_ChatApplet_Factory", gnome.applet.Applet.__gtype__, "ChatApplet", "0", factory)