PMW 0.8.5 vs Python 2.3

Robin Becker robin at jessikat.fsnet.co.uk
Sun Aug 10 10:06:20 CEST 2003


I'm getting the following error when I attempt to run  an app with
Python 2.3. I suppose this was silently ignored under 2.2. With
debugging I see that s==0 in

_int = int
.....
def atoi(s , base=10):
    return _int(s, base)

is the cause of the error. Has int changed or is it the source of the
value ie menu.entrycget(item, 'underline')


File "C:\Python\lib\site-packages\Pmw\Pmw_0_8_5\lib\PmwMainMenuBar.py",
line 140, in addmenuitem
    self._addHotkeyToOptions(menuName, kw, traverseSpec)
  File "C:\Python\lib\site-packages\Pmw\Pmw_0_8_5\lib\PmwMainMenuBar.py"
, line 177, in _addHotkeyToOptions
    underline = string.atoi(menu.entrycget(item, 'underline'))
  File "C:\Python\Lib\string.py", line 220, in atoi
    return _int(s, base)
TypeError: int() can't convert non-string with explicit base
-- 
Robin Becker




More information about the Python-list mailing list