【发布时间】:2014-05-11 00:59:33
【问题描述】:
我正在尝试使用 Kivy 制作飞扬的小鸟副本,但目前我遇到了困难。 问题是我不知道如何在视图中创建多个小部件。
现在我的 kv 文件中有:
<Game>:
col: column
Column:
id: column
<Column>:
pos: 0, 0
canva:
Rectangle:
pos: self.top_column_position
size: 30, self.height
Rectangle:
pos: self.bottom_column_position
size: 30, self.height
目前我能够制作单列,所以问题是如何制作以便我可以拥有多个列?
【问题讨论】: