Re: Models...
Greg Ewing <[email protected]>
| Newsgroups | gmane.comp.python.anygui.devel |
|---|---|
| Message-ID | <[email protected]> |
> In reality, if you are wanting to retrieve the value that he model > represents, then 'val = widget.property', where 'property' is a model, > proves the more appealing idiom. However, when one wants to call a > user-provided method on the model, which is the real purpose of > user-provided models, then a call like 'widget.property.calculate()' > will fail miserably, as 'widget.__getattr__' will have returned the > value that 'property' represents. If you're having problems like this, I think you've taken the model-view idea way, way too far. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | [email protected] +--------------------------------------+ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf