On Saturday, July 09, 2011 08:22:02 am Paul McNett wrote:
> addObject() should be deprecated and eventually removed. There isn't a
> use-case for its existence, and came from Dabo's earliest days when
> attempting to shoe-horn idioms from FoxPro into Python.
> 
> Worse, the non-addObject() version is shorter:
> 
> o = self.addObject(Cls, params) -> o = Cls(self, params)
> 
> If you take this on, I believe AppWizard still generates code with
> addObject() which would need to be fixed, too.
> 
> Paul

Again me being dumb - how would it work?  For example we have
dlg = dabo.ui.dDialog(self, Caption=_("Last SQL"),
                                SaveRestorePosition=True, BorderResizable=True)
eb = dlg.addObject(dabo.ui.dEditBox, ReadOnly=True, Value=sql,
                                Size=(400, 400)) 



Johnf

_______________________________________________
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]

Reply via email to