For one of my plugins I'm rewriting the GUI with Glade (new for me) to get a better user interface divided into logical groups. The problem is that I don't know how to register it for Gimp. The testsource beneath works (XML file is not enclosed) but what have I to add/change for GIMP or has anyone a (small) example for me. I've looked on several forums (Glade, Pyhon, and others) but found nothing usefull.
def on_window1_destroy(self, widget, data=None):
def on_checkbutton1_toggled(self, widget, data=None):
print "button was toggled"
builder = gtk.Builder()
self.window = builder.get_object("window1")
## def MyPluginName(arg1, arg2,....)
## do the job
if __name__ == "__main__":
editor = Tutorial()