On Monday 19 February 2007 17:08, Ken Dibble wrote:
> > > The line is verbatim out of the How-to docs; the only difference is the
> > > name/location of the connection file. I've tried it with and without
> > > the path included. And the same code worked fine this morning before I
> > > installed updates from Subversion.
> >
> >OK then show us your afterInit method.
>
> I can't get to the dabodev server (yet again; it's been iffy all day).
> Rather than wait to try to post this to the tracker, here's the
> CLASSTEXT.py file from my latest attempt. It shows that *any* line of code
> added to afterInit() causes the problem:
>
> import dabo
> dabo.ui.loadUI("wx")
> import dabo.dEvents as dEvents
> import sys
>
>
> class dForm_1390291560(dabo.ui.dForm):
> def __init__(self, parent=None, attProperties={u'code-ID':
> u'dForm-top', u'Caption': u'Dabo Class Designer', u'Top': u'91', u'Height':
> u'546', u'Width': u'682', u'UseSizers': u'True', u'Left': u'262'}, *args,
> **kwargs):
> super(dForm_1390291560, self).__init__(parent=parent,
> attProperties=attProperties, *args, **kwargs)
> self.Sizer = None
>
>
> parentStack = []
> sizerDict = {}
> currParent = self
> currSizer = None
> sizerDict[currParent] = []
>
> obj = dabo.ui.dSizer(Orientation='Vertical')
> if currSizer:
> currSizer.append(obj)
> currSizer.setItemProps(obj, {})
>
> if currSizer:
> sizerDict[currParent].append(currSizer)
> currSizer = obj
> if not currParent.Sizer:
> currParent.Sizer = obj
>
> obj = dabo.ui.dPanel(currParent, attProperties={})
> if currSizer:
> currSizer.append(obj)
> currSizer.setItemProps(obj, {'BorderSides':
> ['All'], 'Proportion': 1, 'HAlign': 'Left', 'VAlign': 'Top', 'Border': 0,
> 'Expand': True})
>
> if sizerDict[currParent]:
> try:
> currSizer = sizerDict[currParent].pop()
> except: pass
> else:
> currSizer = None
>
> def afterInit(self):
> x = 1
>
>
> Ken Dibble
> www.stic-cil.org
OK Ed looks my change again is the cause.
compClass = compile(self.classText, self._classFileName, "exec")
I'll post a cdxml file that I think matches you issue.
--
John Fabiani
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users