[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 (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.

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Hello,

Is there any way to effect a change in windows ( or any system for that
matter ) system colors for my wxPython app? i.e. Scrollbar, Choice, etc.

Joshua

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

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.

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
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Is there any way to effect a change in windows ( or any system for that
matter ) system colors for my wxPython app? i.e. Scrollbar, Choice, etc.

System wide: Use control panel.

Localized to your App: wxButton and maybe one or two other controls will go
into ownerdrawn mode if you set the foreground or background colours.
Others don't have ownderdraw support and will always be drawn by the system.

Sorry.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users