Re: Model redesign?
"Samuele Pedroni" <[email protected]>
| Newsgroups | gmane.comp.python.anygui.devel |
|---|---|
| Message-ID | <04fd01c263d9$aea38400$6d94fea9@newmexico> |
From: Magnus Lie Hetland <[email protected]> > Samuele Pedroni <[email protected]>: > [snip] > > > >>> btn = Button() > > > >>> mdl = NumberModel(name='x') > > > >>> link(mdl, btn.set) > > > > > > Here, when mdl is modified, btn.set will be called. To implement the > > > controller part of things, Components can be observable as well: > > > > but you probably want to be able to bind an > > non-through-ui-modifiable model to more than one components, > > Yes? link() can do many-to-many links, so this shouldn't be a problem, > I think (unless I misunderstood you). the problem is the name above: a number model mdl can control comp1.foo and comp2.bar. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf