FROM: Robin Dunn DATE: 03/02/2001 17:20:40 SUBJECT: RE: [wxPython] wxTextCtrl There appears to be some confusion between wxTextCtrl
> and new_wxTextCtrl. A problem arises with SetValue,
> see the debugger output below:
>
> PythonWin 2.0 (#8, Oct 19 2000, 11:30:05) [MSC 32 bit (Intel)] on win32.
> Portions Copyright 1994-2000 Mark Hammond (<EMAIL: PROTECTED>) - see
> 'Help/About PythonWin' for further copyright information.
> [Dbg]> self.SetValue(1,'ZZZ')
> Traceback (innermost last):
> File "<interactive input>", line 1, in ?
> File "g:\program files\python20\wxPython\controls.py", line 513, in
SetValue
> val = apply(controlsc.wxTextCtrl_SetValue,(self,) + _args, _kwargs)
> TypeError: wxTextCtrl_SetValue requires exactly 2 arguments; 3 given
> [Dbg]> self.SetValue('CCC')
> TypeError: not enough arguments; expected 3, got 2
> [Dbg]>
>
> According to the wxWindows doc, a single string value is required.
>
> Any suggestion would be appreciated.
>
The only think I can think of is that the debugger has confused what self
is. What does it do if you don't run it from within PythonWin? What does
it do if you call
controlsc.wxTextCtrl_SetValue(self, "CCC")
?
--
Robin Dunn
Software Craftsman
<EMAIL: PROTECTED> Java give you jitters?
http://wxPython.org Relax with wxPython!
_______________________________________________
wxPython-users mailing list
<EMAIL: PROTECTED>
http://lists.sourceforge.net/lists/listinfo/wxpython-users
|