[pygtk] Re: _obj=None vs. obj=None in gtk.py:GtkWidget?

2002-10-26 Thread James Henstridge
Christian Reis wrote: Hello there, Asking James because he might have a good clue. In pygtk0's gtk.py, we have: class GtkObject: [...] def destroy(self, _obj=None): _gtk.gtk_object_destroy(self._o) and then class GtkWidget: def destroy(self, obj=None):

[pygtk] Re: _obj=None vs. obj=None in gtk.py:GtkWidget?

2002-10-26 Thread Christian Reis
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: