(self)
| 54 | self.space.add(ground_shape) |
| 55 | |
| 56 | def add_random_balls(self): |
| 57 | for i in range(1, 200): |
| 58 | x = random.randint(0, 600) |
| 59 | y = random.randint(0, 400) |
| 60 | r = random.randint(1, 10) |
| 61 | self.add_ball(x, y, r) |
| 62 | |
| 63 | def add_ball(self, x, y, r, fill_color='black', line_color='red'): |
| 64 | ball = Ball(x, y, r, self.graph_elem) |