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).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OS: Windows 7 64 bit
Python 3.3 32 bit
Using Idle3
all.py:
Traceback (most recent call last):
File "C:\Python33\Lib\site-packages\Pmw\Pmw_2_0_0\demos\All.py", line 59, in <module>
import DemoVersion
File "C:\Python33\Lib\site-packages\Pmw\Pmw_2_0_0\demos\DemoVersion.py", line 10
path = os.path.join(os.getcwd(), path)
^
TabError: inconsistent use of tabs and spaces in indentation
EntryField.py:
text: ABC
Traceback (most recent call last):
File "C:\Python33\Lib\site-packages\Pmw\Pmw_2_0_0\demos\EntryField.py", line 97, in <module>
widget = Demo(root)
File "C:\Python33\Lib\site-packages\Pmw\Pmw_2_0_0\demos\EntryField.py", line 38, in init
'format' : 'ymd'},
File "../../..\Pmw\Pmw_2_0_0\lib\PmwEntryField.py", line 92, in init
self.initialiseoptions()
File "../../..\Pmw\Pmw_2_0_0\lib\PmwBase.py", line 606, in initialiseoptions
func()
File "../../..\Pmw\Pmw_2_0_0\lib\PmwEntryField.py", line 168, in _validate
self._checkValidity()
File "../../..\Pmw\Pmw_2_0_0\lib\PmwEntryField.py", line 260, in _checkValidity
valid = self._getValidity()
File "../../..\Pmw\Pmw_2_0_0\lib\PmwEntryField.py", line 236, in _getValidity
status = dictio'validator'
TypeError: datevalidator() got an unexpected keyword argument 'format'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
New to Python.
Attempting to use PMW2 with Python3. Starting with some of the package
demos.
Some will run such as the Combobox demos, but all.py and some of the others
crash.
Regards,
Chuck
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).
OS: Windows 7 64 bit
Python 3.3 32 bit
Using Idle3
all.py:
Traceback (most recent call last):
File "C:\Python33\Lib\site-packages\Pmw\Pmw_2_0_0\demos\All.py", line 59, in <module>
import DemoVersion
File "C:\Python33\Lib\site-packages\Pmw\Pmw_2_0_0\demos\DemoVersion.py", line 10
path = os.path.join(os.getcwd(), path)
^
TabError: inconsistent use of tabs and spaces in indentation
EntryField.py:
text: ABC
Traceback (most recent call last):
File "C:\Python33\Lib\site-packages\Pmw\Pmw_2_0_0\demos\EntryField.py", line 97, in <module>
widget = Demo(root)
File "C:\Python33\Lib\site-packages\Pmw\Pmw_2_0_0\demos\EntryField.py", line 38, in init
'format' : 'ymd'},
File "../../..\Pmw\Pmw_2_0_0\lib\PmwEntryField.py", line 92, in init
self.initialiseoptions()
File "../../..\Pmw\Pmw_2_0_0\lib\PmwBase.py", line 606, in initialiseoptions
func()
File "../../..\Pmw\Pmw_2_0_0\lib\PmwEntryField.py", line 168, in _validate
self._checkValidity()
File "../../..\Pmw\Pmw_2_0_0\lib\PmwEntryField.py", line 260, in _checkValidity
valid = self._getValidity()
File "../../..\Pmw\Pmw_2_0_0\lib\PmwEntryField.py", line 236, in _getValidity
status = dictio'validator'
TypeError: datevalidator() got an unexpected keyword argument 'format'
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.
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.
Seems to work fine. Thanks so much for the quick fix!!!