From: <bra...@om...> - 2005-05-13 16:58:19
|
Alex Tweedley wrote on 05/06/2005 03:53:27 PM: > > > Unfortunately, 0.3 will not be out tonight as previously expected. > > Version 0.3 is now available, at > www.tweedly.net/Python/newresourceEditorv0.3.zip > Note in particular the need to update Pythoncard/widget.py for this > version. I am trying .3 for the first time with PythonCard .82, and have replaced the widget.py. I notice that the CVS version number on your widget.py ( 1.133) is older than the one in PythonCard .82 (1.136). When I launch the NewResourceEditor.0.3, I get the following error: oms-ballen:~ ballen$ pythonw2.4 /OMS/dev/misc/newresourceEditorv0_3/resourceEditor.py Traceback (most recent call last): File "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_core.py", line 11904, in <lambda> lambda event: event.callable(*event.args, **event.kw) ) File "/OMS/dev/misc/newresourceEditorv0_3/resourceEditor.py", line 163, in on_initialize self.components[sizingHandle] = self.sizingHandleTemplate File "/OMS/dev/pythonPackages/PythonCard/model.py", line 98, in __setitem__ control = component.ComponentFactory().createComponent(self.parent, self.parent.panel, item) File "/OMS/dev/pythonPackages/PythonCard/component.py", line 347, in createComponent component = clazz(aParent, aResource) File "/OMS/dev/pythonPackages/PythonCard/components/image.py", line 70, in __init__ widget.Widget.__init__( self, aParent, aResource ) File "/OMS/dev/pythonPackages/PythonCard/widget.py", line 63, in __init__ component.Component.__init__(self) At that point, the new ResourceEditor launches, but when I create a widget I get a similar error: TypeError: __init__() takes exactly 2 arguments (1 given) Traceback (most recent call last): File "/OMS/dev/pythonPackages/PythonCard/menu.py", line 204, in _dispatch handler(background, aWxEvent) File "/OMS/dev/misc/newresourceEditorv0_3/resourceEditor.py", line 1685, in on_componentAdd_command self.create_component(desc) File "/OMS/dev/misc/newresourceEditorv0_3/resourceEditor.py", line 1543, in create_component self.components[name] = desc File "/OMS/dev/pythonPackages/PythonCard/model.py", line 98, in __setitem__ control = component.ComponentFactory().createComponent(self.parent, self.parent.panel, item) File "/OMS/dev/pythonPackages/PythonCard/component.py", line 347, in createComponent component = clazz(aParent, aResource) File "/OMS/dev/pythonPackages/PythonCard/components/textfield.py", line 85, in __init__ widget.Widget.__init__(self, aParent, aResource) File "/OMS/dev/pythonPackages/PythonCard/widget.py", line 63, in __init__ component.Component.__init__(self) |