class MyApp(gtk.Window):

    def __init__(self, parser, ui):
        gtk.Window.__init__(self)
parser.connect('some-signal', ui.update_this)
parser.connect('some-other-signal', ui.update_that, extra_params)
What is a 'good practice' way to write a Python GTK+ application?