Matt Wilson wrote:
> On Sun, Jan 23, 2000 at 07:15:46PM -0500, Edward Muller wrote:
> > Any chance that the next release of PyGtk/Gnome will support the
> > following:
> >
> > 1) Some type of set_data method
> > (see
> > http://developer.gnome.org/doc/API/gtk/gtkobject.html#GTK-OBJECT-SET-DATA)
>
> GtkObject already has set_data and remove_data methods.
Then why does this:
-----------------
from gtk import *
foo = GtkObject()
foo.set_data('fubar','myvalue')
print foo.get_data('fubar')
----------------
return this:
----------------
Traceback (innermost last):
File "<stdin>", line 5, in ?
File "/usr/lib/python1.5/site-packages/gtk.py", line 104, in set_data
_gtk.gtk_object_set_data(self._o, key, value)
File "/usr/lib/python1.5/site-packages/gtk.py", line 70, in __getattr__
raise AttributeError, attr
AttributeError: _o
----------------
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]