GNOME Bugzilla – Bug 168999
can't get the python class from a gtype
Last modified: 2006-01-09 14:13:06 UTC
I can get the gtype from a python class like: >>> gobject.type_name(gtk.Window) 'GtkWindow' >>> gobject.type_from_name('GtkWindow') <GType GtkWindow (136052312)> >>> gtk.Window.__gtype__ <GType GtkWindow (136052312)> But I can't get the python class from a gtype
Johan Dahlin already fixed this in CVS: >>> gobject.GType.from_name('GtkWindow').pytype <type 'gtk.Window'>