Robin,
I have run the script in three ways:
CASE 1 self.SetValue(v)
CASE 2 self.SetValue(1, v)
CASE 3 controlsc.wxTextCtrl_SetValue(self,"CCC")
Each gives an error message, see below.
Colin W.
CASE 1
self.SetValue(v)
before1 SetValue v= 'X' type(v)= <type 'string'>
Value: 1 X
TypeError: not enough arguments; expected 3, got 2
CASE 2
self.SetValue(1, v)
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
CASE 3
controlsc.wxTextCtrl_SetValue(self, "CCC")
before1 SetValue v= 'X' type(v)= <type 'string'>
TypeError: not enough arguments; expected 3, got 2
Value: 1 CCC
TypeError: not enough arguments; expected 3, got 2
http://www.geocrawler.com/lists/3/SourceForge/6062/0/5266796/
http://www.geocrawler.com/lists/3/Sour%0D%0A%09ceForge/6062/0/5266796/ (11.5 KB)