Re: [pygtk] GtkTreeItem boggle

1999-10-09 Thread Hrvoje Niksic

James Henstridge [EMAIL PROTECTED] writes:

 Now in order to have the same python object refer to a particular
 gtk object all the time, the gtk object would need to hold a
 reference to it (we don't want the python object to be freed while
 the gtk object is in use).  This forms a circular dependency,

It doesn't, since the Python collector knows nothing about Gtk
objects.
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



Re: [pygtk] GtkTreeItem boggle

1999-10-09 Thread James Henstridge

The problem is that the python object holds a reference to the GtkObject
through a call to gtk_object_ref.  This reference will be decremented with
gtk_object_unref when the python object is destroyed.  If the GtkObject
also held a reference (using Py_INCREF), then we would have a circular
dependency.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On 9 Oct 1999, Hrvoje Niksic wrote:

 James Henstridge [EMAIL PROTECTED] writes:
 
  Now in order to have the same python object refer to a particular
  gtk object all the time, the gtk object would need to hold a
  reference to it (we don't want the python object to be freed while
  the gtk object is in use).  This forms a circular dependency,
 
 It doesn't, since the Python collector knows nothing about Gtk
 objects.
 To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]