I have a three GObject subclasses - Class1, Class2 and Class3, Class2
being a subclass of Class1. Class1 has an entry in __gproperties__ as
follows:

'playlists': (gobject.TYPE_PYOBJECT, "", "",
gobject.PARAM_CONSTRUCT|gobject.PARAM_READWRITE)

In Class2's __init__ function, I have this loop:

for x in foo:
  self.props.playlists.append(Class3(self.bar, self.bar.baz, x))

where foo is a list of strings.

As a simple print statement tells me, the Class3 instances get
constructed correctly, but as soon as I try to access
self.props.playlists, all list entries are the same as the last one
added. I've been thinking about filing a bug, however, I've decided to
ask you if I'm doing something wrong first.
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to