Użytkownik Nate Lowrie napisał: > dabo Commit > Revision 5773 > Date: 2010-03-30 13:49:14 -0700 (Tue, 30 Mar 2010) > Author: Nate > Trac: http://trac.dabodev.com/changeset/5773 > > Changed: > U trunk/dabo/ui/dDataControlMixinBase.py > > @@ -356,6 +356,7 @@ > self.__src = None > self._oldVal = None > self._DataSource = val > + self.update() > dabo.ui.callAfter(_delayedSetDataSource) > > >
Hi. This change was introduced long time ago, but I have a reservation. Why update happen if DataSource is set when control is instantiated? It should never happen or it should for all controls, not for data aware only. At first sight it looks nice, I don't need use container update() method anymore to update controls. But what if I have other controls in container that uses dynamic properties? I still need to use container update() to update all my controls. But in this situation, data controls are updated twice. In conclusion, I think that there should be simple choice, to update all controls on instantiation or none. -- Regards Jacek Kałucki _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[email protected]
