A wxPython glitch?

Colin J. Williams cjw at connection.com
Sun Nov 28 10:44:19 EST 1999


The following method call gives an argument count error shown below.

  self.SetScrollbar(orientation= wx.wxHSCROLL,
           range= 700, thumbsize= 200,
           pagesize= 100, position= 0,
           refresh= wx.TRUE)

PythonWin 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on
win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
Portions Copyright 1994-1999 Mark Hammond (MHammond at skippinet.com.au)
>>> Unhandled exception while debugging...
Traceback (innermost last):
  File "G:\Program Files\Python\wxPython\windows.py", line 370, in
SetScrollbar
    val = apply(windowsc.wxWindow_SetScrollbar,(self,) + _args, _kwargs)

TypeError: wxWindow_SetScrollbar requires at least 5 arguments; 4 given
[Dbg]>>> _kwargs
{'range': 700, 'orientation': 1073741824, 'pagesize': 100, 'refresh': 1,
'thumbsize': 200, 'position': 0}
[Dbg]>>>

Any advice would be appreciated.

Colin W.





More information about the Python-list mailing list