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\Pm w_0_8_5\lib\Pmw MainMenuBar.py" ,
line 140, in addmenuitem
self._addHotkey ToOptions(menuN ame, kw, traverseSpec)
File "C:\Python\lib\ site-packages\Pmw\Pm w_0_8_5\lib\Pmw MainMenuBar.py"
, line 177, in _addHotkeyToOpt ions
underline = string.atoi(men u.entrycget(ite m, '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
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\Pm w_0_8_5\lib\Pmw MainMenuBar.py" ,
line 140, in addmenuitem
self._addHotkey ToOptions(menuN ame, kw, traverseSpec)
File "C:\Python\lib\ site-packages\Pmw\Pm w_0_8_5\lib\Pmw MainMenuBar.py"
, line 177, in _addHotkeyToOpt ions
underline = string.atoi(men u.entrycget(ite m, '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
Comment