[Tutor] what is wrong with this?

Liam Clarke cyresse at gmail.com
Sun Feb 13 07:15:02 CET 2005


Yup, that's what I was after, the full error message.

 >self.grid1.CreateGrid(100,6)
> val = gridc.wxGrid_CreateGrid(self, *_args, **_kwargs)
try this 

self.grid1.CreateGrid(self, 100, 6)

I'm pretty sure you have to explicitly pass self.

Let me know how ya go.

Regards, 

Liam Clarke


On Sun, 13 Feb 2005 12:00:56 +0800, jrlen balane <nbbalane at gmail.com> wrote:
> how would i find the stack trace? by the way, this is what the log says:
> 
> 11:53:16:     TypeError: wxGrid_CreateGrid() takes at least 3
> arguments (2 given)Traceback(most recent call last):
> 11:53:16:     TypeError: wxGrid_CreateGrid() takes at least 3
> arguments (2 given)  File
> "C:\PYTHON23\Lib\site-packages\wxPython\tools\boa\Models\wxPythonControllers.py",
> line 80, in OnDesigner
> 11:53:16:     self.showDesigner()
> 11:53:16:       File
> "C:\PYTHON23\Lib\site-packages\wxPython\tools\boa\Models\wxPythonControllers.py",
> line 145, in showDesigner
> 11:53:16:     designer.refreshCtrl()
> 11:53:16:       File
> "C:\PYTHON23\Lib\site-packages\wxPython\tools\boa\Views\Designer.py",line
> 379, in refreshCtrl
> 11:53:16:     self.initObjectsAndCompanions(objCol.creators[1:],
> objCol, deps, depLnks)
> 11:53:16:       File
> "C:\PYTHON23\Lib\site-packages\wxPython\tools\boa\Views\InspectableViews.py",
> line 140, in initObjectsAndCompanions
> 11:53:16:     dependents, depLinks)
> 11:53:16:       File
> "C:\PYTHON23\Lib\site-packages\wxPython\tools\boa\Views\InspectableViews.py",
> line 216, in initObjProps
> 11:53:16:     getattr(ctrl, prop.prop_setter)(value)
> 11:53:16:       File "C:\PYTHON23\lib\site-packages\wxPython\grid.py",
> line 973, in CreateGrid
> 11:53:16:     val = gridc.wxGrid_CreateGrid(self, *_args, **_kwargs)
> 11:53:16:     TypeError: wxGrid_CreateGrid() takes at least 3
> arguments (2 given)
> 


-- 
'There is only one basic human right, and that is to do as you damn well please.
And with it comes the only basic human duty, to take the consequences.


More information about the Tutor mailing list