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 (MarkH@ActiveState.com) - 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.
Colin W.
···
-------- Original Message --------
Subject: wxTextCtrl
Date: Fri, 02 Mar 2001 15:14:08 -0500
From: "Colin J. Williams" <cjw@sympatico.ca>
To: wxPython Users List <wxpython-users@lists.sourceforge.net>
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users