PMW2 and Python3

  • Chuck Elliot

    Chuck Elliot - 2013-02-25

    New to Python.

    Attempting to use PMW2 with Python3. Starting with some of the package

    Some will run such as the Combobox demos, but and some of the others



  • Adrian

    Adrian - 2013-02-25

    Please add some additional information such as OS and Python Version (including 32/64 bit) and crash info (error message/etc). Did you download the Pmw 2.0.0 beta file? The alpha will fail almost all tests (even though a lot of the error messages are bogus).

  • Chuck Elliot

    Chuck Elliot - 2013-02-25

    OS: Windows 7 64 bit
    Python 3.3 32 bit
    Using Idle3

    Traceback (most recent call last):
    File "C:\Python33\Lib\site-packages\Pmw\Pmw_2_0_0\demos\", line 59, in <module>
    import DemoVersion
    File "C:\Python33\Lib\site-packages\Pmw\Pmw_2_0_0\demos\", line 10
    path = os.path.join(os.getcwd(), path)
    TabError: inconsistent use of tabs and spaces in indentation

    text: ABC
    Traceback (most recent call last):
    File "C:\Python33\Lib\site-packages\Pmw\Pmw_2_0_0\demos\", line 97, in <module>
    widget = Demo(root)
    File "C:\Python33\Lib\site-packages\Pmw\Pmw_2_0_0\demos\", line 38, in init
    'format' : 'ymd'},
    File "../../..\Pmw\Pmw_2_0_0\lib\", line 92, in init
    File "../../..\Pmw\Pmw_2_0_0\lib\", line 606, in initialiseoptions
    File "../../..\Pmw\Pmw_2_0_0\lib\", line 168, in _validate
    File "../../..\Pmw\Pmw_2_0_0\lib\", line 260, in _checkValidity
    valid = self._getValidity()
    File "../../..\Pmw\Pmw_2_0_0\lib\", line 236, in _getValidity
    status = dictio'validator'
    TypeError: datevalidator() got an unexpected keyword argument 'format'

  • Adrian

    Adrian - 2013-02-25

    Chuck, thanks for the catch

    I haven't tested the demos yet, I honestly forgot about those. I was thinking about the tests when I read your post :)

    I hope I'll get to fixing the demos in the next couple of days. I'll upload an attachment of the updated demos as soon as they're ready.

  • Adrian

    Adrian - 2013-02-26

    The demos now work. The latest Pmw beta fixes the demos as well as two minor bugs in the original library files (untraceble through the original test suite). Please try it out.

  • Chuck Elliot

    Chuck Elliot - 2013-02-26

    Seems to work fine. Thanks so much for the quick fix!!!


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks