PYGTK: New-Style Python Class Using Builder

I have searched Google and the web for a resource on creating Python new-style classes for windows and dialogs when using GTK’s Builder and Glade UI files. I haven’t found much, but have managed to piece together a workable model. The basics of the process is to create a new class that inherits from gtk.Window or gtk.Dialog. Override the __new__() method and retrieve the window object from builder, call a method to act like an __init__() method, and return the new window object. Continue reading