
`with canvas:`(Python`with something()as x:`)如何隐式地在Kivy中工作?
我只是意识到在使用with Python语句在Kivy中添加顶点指令的方式中有一些神秘的东西(至少对我而言).例如,使用的方式是这样的: … some codeclass MyWidget(Widget) … some code def some_method (self): with self.canvas: Rectangle
我只是意识到在使用with Python语句在Kivy中添加顶点指令的方式中有一些神秘的东西(至少对我而言).例如,使用的方式是这样的: … some codeclass MyWidget(Widget) … some code def some_method (self): with self.canvas: Rectangle