My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 244: MTCircularSlider needs one argument (rotation: float)
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Apr 2010


 
Reported by ilya.cas...@gmail.com, Apr 19, 2010
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
FORGET ABOUT IT, in given version of pymt (commit
79dd6304bf7a2ed6633224d6cd2782f24d8d01c3) there is not this issue, my fault, sorry,
can delete this ticket.

Apr 19, 2010
Project Member #2 txprog
(No comment was entered for this change.)
Status: Invalid

Powered by Google Project Hosting