| S | D | N    QUESTIONEXCHANGE · OPEN MAGAZINE · NEWSFORGE My OSDN · PARTNERS · AFFILIATES   
Geocrawler
   Home | Privacy Statement | About | Contact Us | Add a list! REGISTER LOGIN
 Mailing Lists
     SourceForge
         wxpython-users -
Archive
 2001 (303 msgs)
 2000 (800 msgs)
 

Thread: [wxPython] wxTextCtrl

Print | Monitor This List | Reply To Author

Message: 5266796
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


		

 
Copyright1999-2001 Open Source Development Network. All rights reserved.
Advertising· Privacy Statement· Terms of Use