Trying to open a saved form that has a Spacer on it will cause the following error in both Windows and GTK enviroments. I am able to fix this though by changing the line (approximate line #1250)
  newSizer = LayoutSpacerPanel(obj, Spacing=(spc, spc))
to
  newSizer = LayoutSpacerPanel(obj, Spacing=(spc))


Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/Dabo-0.5-py2.4.egg/dabo/lib/eventMixin.py", line 87, in raiseEvent
    bindingFunction(event)
  File "Designer.py", line 621, in onOpenDesign
    self.openClass(ff)
  File "Designer.py", line 243, in openClass
    self.recreateChildren(frm, clsd["children"], None, False)
  File "Designer.py", line 313, in recreateChildren
    self.recreateChildren(parent, [kid], sz, True)
  File "Designer.py", line 283, in recreateChildren
    itm = self.addSizer("spacer", spacing=atts.get("Spacing", (20,20)))
  File "Designer.py", line 1252, in addSizer
    newSizer = LayoutSpacerPanel(obj, Spacing=(spc, spc))
File "/home/kc/dev/py/dabo/daboide/DesignerComponents.py", line 312, in __init__
    self.Spacing = spc
File "/home/kc/dev/py/dabo/daboide/DesignerComponents.py", line 370, in _setSpacing
    self._spacing = self.Size = val
File "/usr/lib/python2.4/site-packages/Dabo-0.5-py2.4.egg/dabo/ui/uiwx/dPemMixin.py", line 1570, in _setSize
    self.SetBestFittingSize(val)
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 8089, in SetBestFittingSize
    return _core_.Window_SetBestFittingSize(*args, **kwargs)
TypeError: Expected a 2-tuple of integers or a wxSize object.


-Casey

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to