【发布时间】:2015-06-06 04:59:30
【问题描述】:
我正在尝试调整椭圆的大小。但无论我将其设置为多大,圆圈总是如下所示:
我的 Python 代码:
class TestCircle(Widget):
def move(self, dt):
self.x = self.x + self.velocity_x
sm = ScreenManager()
sm.add_widget(WelcomeScreen(name='welcome'))
class ShootingApp(App):
def play_ball(self, intensity, duration):
ball = TestCircle()
ball.size = Vector(50, 50)
ball.pos = Vector(0,0)
basicscreen3.add_widget(ball)
def build(self):
return sm
我的 kivy 代码是这样的:
<TestCircle>:
size: 50, 50
canvas:
Color:
rgb: (0, 1, 1)
Ellipse:
size: self.size
pos: self.pos
【问题讨论】:
标签: kivy