Just to make this clear: You have to decide wether you want to use the gi.introspection
bindings (which are up to date and mostly autogenerated) or the pygtk
wrapper around gtk+-2.0
(hand crafted, as of now pygtk3
is still work in progress, correct me if I am wrong).
Mixing these will get you in trouble further or later.
Also your initial issue was, GtkGrid
(part of gtk+-3.0
) was part of the gi.introspection
bindings which (usually) require Python 3.x.y
, whereas you used pygtk2
with Python 2.7.x
. Changing to Python 3.3
just made the bindings availiable to you.
In gtk2
GtkGrid
was called GtkTable
, see https://developer.gnome.org/gtk2/stable/GtkTable.html.