Re: [pygtk] self.name vs. self['name'] in subclasses

1999-02-18 Thread Aaron Optimizer Digulla
Quoting James Henstridge [EMAIL PROTECTED]: Just as an idea, what would people think about using the __getattr__ and __setattr__ functions to get and set widget data. This would require altering the current __getattr__ routines to call their parent's __getattr__ method for unknown

Re: [pygtk] self.name vs. self['name'] in subclasses

1999-02-18 Thread James Henstridge
I was actually thinking of some of the subclasses that already implement a __getattr__ method to expose some of the widget structure members. For these currently it raises an exception if it doesn't recognise an attribute name. The change would be for it to call its superclass's __getattr__

[pygtk] New snapshot of pygtk

1999-02-18 Thread James Henstridge
Hello, I have released a new snapshot of pygtk, that will probably become 0.5.11. It contains the __[gs]etattr__ additions, and I have implemented a (null-ok) tag for the .defs files that produces code so that None can be passed in place of a string or GtkObject or boxed type (GdkFont/GdkColor