PMW 0.8.5 vs Python 2.3

Discussion in 'Python' started by Robin Becker, Aug 10, 2003.

  1. Robin Becker

    Robin Becker Guest

    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
    Robin Becker, Aug 10, 2003
    #1
    1. Advertising

  2. Robin Becker wrote:

    > 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.
    >>> int(0, 16)

    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    TypeError: int() can't convert non-string with explicit base

    --
    Erik Max Francis && && http://www.alcyone.com/max/
    __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
    / \ Men and women, women and men. It will never work.
    \__/ Erica Jong
    Erik Max Francis, Aug 10, 2003
    #2
    1. Advertising

  3. Robin Becker

    Robin Becker Guest

    In article <>, Erik Max Francis
    <> writes
    >Robin Becker wrote:
    >
    >> 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


    never min people, I upgraded to Pmw 1.2 and things are now fine.
    --
    Robin Becker
    Robin Becker, Aug 10, 2003
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ken

    Using PMW?

    ken, Jul 14, 2003, in forum: Python
    Replies:
    0
    Views:
    472
  2. Sriram Chadalavada

    Pmw BLT problems

    Sriram Chadalavada, Aug 18, 2003, in forum: Python
    Replies:
    1
    Views:
    523
    Michael Peuser
    Aug 19, 2003
  3. Bruce Davis

    Windows python/Pmw-tkinter problem

    Bruce Davis, Oct 24, 2003, in forum: Python
    Replies:
    0
    Views:
    578
    Bruce Davis
    Oct 24, 2003
  4. Wennie Hwang
    Replies:
    0
    Views:
    251
    Wennie Hwang
    Oct 11, 2004
  5. w
    Replies:
    0
    Views:
    271
Loading...

Share This Page