WHERE_AM_I = abspath(dirname(__file__))


class MyApp(object):

    def __init__(self):
        self.builder = Gtk.Builder()
self.glade_file = join(WHERE_AM_I, 'test.glade')
GObject.type_register(GtkSource.View)
self.builder.add_from_file(self.glade_file)
if __name__ == '__main__':
    pass
Загрузите графический интерфейс из Glade с помощью GtkSourceView в PyGObject