Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition duration = 0 #1547

Closed
rainbowdesign opened this issue Oct 2, 2013 · 1 comment · Fixed by #1682
Closed

Transition duration = 0 #1547

rainbowdesign opened this issue Oct 2, 2013 · 1 comment · Fixed by #1682
Labels
Component: Widgets kivy/uix, style.kv Priority: High Should be fixed ASAP
Milestone

Comments

@rainbowdesign
Copy link
Contributor

WipeTransition(duration = 0)

 progress = min(1., anim['time'] / self._duration)

ZeroDivisionError: float division by zero

please fix or add no transition....

@BoonsNaibot
Copy link
Contributor

If self._duration == 0, anim['time']/self._duration is undefined. This can happen during __init__ when the property has no value and is 0 by default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Widgets kivy/uix, style.kv Priority: High Should be fixed ASAP
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants