PMW 0.8.5 vs Python 2.3

R

Robin Becker

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
 
E

Erik Max Francis

Robin said:
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

Something else is going on, you get the same error in 2.2:

Python 2.2.3 (#1, May 31 2003, 21:31:33)
[GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: int() can't convert non-string with explicit base
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top