import gobject, gtk, pickle

for version in ['gobject.glib_version', 'gobject.pygobject_version',
                'gtk.gtk_version', 'gtk.pygtk_version']:
    print '%-30s%s'%(version, eval(version))

d = {}

for i in dir(gtk):
    val = getattr(gtk, i)
    if isinstance(val, gobject.GEnum):
        d[i] = val

assert d and pickle.loads(pickle.dumps(d)) == d
