Re: Headcount
"Samuele Pedroni" <[email protected]>
| Newsgroups | gmane.comp.python.anygui.devel |
|---|---|
| Message-ID | <003101c259af$15c3d660$6d94fea9@newmexico> |
From: Magnus Lie Hetland <[email protected]> > Hm. That's a bit like what we had in 0.1. It's OK (the None stuff > seems like a clean solution) but perhaps we could put this check in > the dispatcher (i.e. in the pull/push methods of the Wrapper) instead? > IOW, check for self.widget == None -- if not, start looking for an > accessor. I definitely think this is a refactoring worth doing (even > though I haven't really looked at your new code yet ;) Yup, but the problem is that in many backends (all?) widget creation is triggered by setContainer so you want to call it even if widget is None, but not the other setFoos. So the refactoring is not so direct. regards. ------------------------------------------------------- In remembrance www.osdn.com/911/