Użycie klasy ObjectProperty
Po prostu zacząłem uczyć się kivy i jestem bardzo zdezorientowany co do użycia klasy ObjectProperty i tego, jak przyjmuje argument None. Czy ktoś mógłby to wyjaśnić? Znalazłem to w tutorialu kivy:
class PongGame(Widget):
ball = ObjectProperty(None)
def update(self, dt):
self.ball.move()
# bounce off top and bottom
if (self.ball.y < 0) or (self.ball.top > self.height):
self.ball.velocity_y *= -1
# bounce off left and right
if (self.ball.x < 0) or (self.ball.right > self.width):
self.ball.velocity_x *= -1