On Wednesday 14 November 2007 05:38:10 am Ed Leafe wrote:
> On Nov 14, 2007, at 2:37 AM, johnf wrote:
> > More info:
> > def __onWxMenuClose(self, evt):
> > try:
> > if evt.GetMenu().Caption == self.Caption:
> > # Closing a single menu will trigger the wx
> > event
> > # for every menu in the menubar.
> > self.raiseEvent(dEvents.MenuClose, evt)
> > else:
> > evt.Skip()
> > except:
> > evt.Skip()
> >
> > at some point is causing the puDeadObjectError
>
> Try the latest commit and let me know if this changes anything.
>
> -- Ed Leafe
> -- http://leafe.com
> -- http://dabodev.com
It no longer crashes while creating the form but does not run either.
Traceback (most recent call last):
File "/home/johnf/downloads/dabo/dabo/ui/uiwx/dMenuItem.py", line 52, in
__onWxHit
self.raiseEvent(dEvents.Hit, evt)
File "/home/johnf/downloads/dabo/dabo/ui/uiwx/dPemMixin.py", line 843, in
raiseEvent
super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
**kwargs)
File "/home/johnf/downloads/dabo/dabo/lib/eventMixin.py", line 92, in
raiseEvent
bindingFunction(event)
File "ClassDesigner.py", line 1657, in onRunDesign
self.CurrentForm.onRunDesign(evt)
File "/home/johnf/downloads/dabo/ide/ClassDesignerFormMixin.py", line 657,
in onRunDesign
frm = dui.createForm(fname)
File "/home/johnf/downloads/dabo/dabo/ui/uiwx/__init__.py", line 1043, in
createForm
frm = cls(*args, **kwargs)
File "/tmp/tmpwAGocG.py", line 71, in __init__
currSizer.append(obj, row=0, col=0)
File "/home/johnf/downloads/dabo/dabo/ui/uiwx/dGridSizer.py", line 90, in
append
szItem.ControllingSizer = self
AttributeError: 'NoneType' object has no attribute 'ControllingSizer'
--
John Fabiani
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]