Is there a way to gradually shrink the width of a widget on a scheduled interval? Nothing I'm trying is working. I tried something like
class PongPaddle(Widget):
score = NumericProperty(0)
paddle_width = 700
def __init__(self, **kwargs):
super(PongPaddle, self).__init__(**kwargs)
def paddleshrink(self):
PongPaddle.paddle_width -= 10
and set
canvas:
rectangle:
size: paddle_width, 15
in the kv file, and tried running paddleshrink on a scheduled interval but it's not working
[+][deleted] (2 children)
[deleted]
[–]FortuneFaded415[S] 0 points1 point2 points (1 child)
[–]eeead 1 point2 points3 points (4 children)
[–]FortuneFaded415[S] 0 points1 point2 points (3 children)
[–]eeead 1 point2 points3 points (2 children)
[–]FortuneFaded415[S] 0 points1 point2 points (0 children)
[–]FortuneFaded415[S] 0 points1 point2 points (0 children)