@@ -0,0 +1,1000 @@
+#!/usr/bin/env python%0Aimport gtk%0A%0Afrom kiwi.ui.delegates import Delegate%0A%0Aclass Hello(Delegate):%0A    def __init__(self):%0A        self.index = 0%0A        self.text = %5B%22I've decided to take my work back underground%22,%0A                     %22To keep it from falling into the wrong hands.%22%5D%0A%0A        topwidget = gtk.Window()%0A        topwidget.set_title(%22So...%22)%0A        self.button = gtk.Button(self.text%5Bself.index%5D)%0A        self.button.show()%0A        topwidget.add(self.button)%0A%0A        Delegate.__init__(self, topwidget, delete_handler=gtk.main_quit)%0A        # focus button, our only widget%0A        self.focus_topmost()%0A%0A    def on_button__clicked(self, button):%0A        self.index = self.index + 1%0A%0A        # Two clicks and we're gone%0A        if self.index %3E 1:%0A            self.hide_and_quit()%0A            # the *handler's* return value disappears into GTK+%0A            return%0A%0A        # update the label of the button%0A        button.set_label(self.text%5Bself.index%5D)%0A%0Aapp = Hello()%0Aapp.show_and_loop()%0A

Add a simple example