python-tksnack
Adam
adamff at humval.com
Sat Mar 14 09:31:39 GMT 2009
Line 108 of tkSnack.py should be changed from
self.configure({key: value})
to
self.configure(**{key: value})
Causes error when attempting to set a sound object property; ie:
snd['frequency'] = 22000
Traceback (most recent call last):
File "../sound/test.py", line 9, in <module>
snd["encoding"] = "Lin32"
File "/var/lib/python-support/python2.5/tkSnack.py", line 108, in
__setitem__
self.configure({key: value})
TypeError: configure() takes exactly 1 argument (2 given)
I don't believe former versions of python assumed unpacking when
dictionary created in function call; as such, as is, this should never
have worked.
More information about the Ubuntu-motu
mailing list