On Sun, Oct 27, 2002 at 09:58:47AM +0800, James Henstridge wrote:
> > class GtkWidget:
> > def destroy(self, obj=None):
> > _gtk.gtk_widget_destroy(self._o)
> >
> The reason for adding the argument here was probably not a very good
> one. The idea was that I could do something like:
> button.connect('clicked', window.destroy)
Yeah, I've seen it done before, the famous `def func(*args):' so it can be
a callback to any signal you want. But my question was more:
> >If you look closely, we have _obj=None and obj=None. Is this for some
> >special reason? It happens in some other functions:
Why is the name of the parameter _obj in GtkObject and obj in GtkWidget?
A consistent typo?
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/