| Issue 244: | MTCircularSlider needs one argument (rotation: float) | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. create an MTCircularSlider(), with no arguments
2. use it (i.e. runTouchApp(MTCircularSlider())
What is the expected output? What do you see instead?
expected output: working MTCircularSlider() even with no arguments. Give a
good default to rotation if not specified.
output got:
Traceback (most recent call last):
File "test.py", line 3, in <module>
runTouchApp(MTCircularSlider())
File
"/usr/lib64/python2.6/site-packages/PyMT-0.4-py2.6.egg/pymt/ui/widgets/circularslider.py",
line 55, in __init__
self.radius_line =
(int(self.radius*sin(radians(self.rotation))),int(self.radius*cos(radians(self.rotation))))
TypeError: a float is required
What version of the product are you using? On what operating system?
git pymt, commit 79dd6304bf7a2ed6633224d6cd2782f24d8d01c3
Gentoo GNU/Linux amd64 - 2.6.32 SMP
Please provide any additional information below.
rotation argument required, but
- API documentation does not mention it
- not clear what "rotation" is for (scatter.rotation maybe?)
- examples/widgets/widgetgallery.py does use MTCircularSlider() without
any argument (and it crashes)
Apr 19, 2010
#1
ilya.cas...@gmail.com
Apr 19, 2010
(No comment was entered for this change.)
Status:
Invalid
|