On Jun 4, 2013, at 2:22 PM, Ricardo Aráoz <ricar...@gmail.com> wrote:

> I MUST be doing something wrong, here's part of my code :
> 
> class pnlPuertoSerial(dabo.ui.dPanel):
> def __init__(self, *args, **kwargs):
> super(pnlPuertoSerial, self).__init__(self, *args, **kwargs)

        No need to even include the __init__ method here - delete those lines.

> def afterInit(self):
> self.puertos = ['Com1', 'Com2', 'Com3']
> self.Sizer = bsBoxSizer(self, 'h', Caption=' Puerto serial ')
> rlPuertos = dabo.ui.dRadioList(self,
> Choices=self.puertos,
> ValueMode='String')
> self.Sizer.append1x(rlPuertos) ......
> 
> 
> class pnlParametros(dabo.ui.dPanel):
> 
> def initProperties(self):
> 
> self.StatusText = "Para programar la lectora"
> 
> def afterInit(self):
> self.Sizer = vs = dabo.ui.dSizer('v')
> hs = dabo.ui.dSizer('h')
> hs.append1x(pnlPuertoSerial(self), border=2)
> vs.append1x(hs)

        The problem is in the next to last line: change it to:

hs.append1x(pnlPuertoSerial(Parent=self), border=2)



-- Ed Leafe





_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/611c7def-9ac1-43a0-a4d2-2072ca2f2...@leafe.com

Reply via email to