【发布时间】:2017-05-26 07:49:09
【问题描述】:
例如,在 Kivy 语言中:
<MainToggle@ToggleButton>:
on_state: # something that will change the state of the sub-toggle
<SubToggle@ToggleButton>:
on_state: self.background_color = 0,0,0,1 # the sub-toggle button changes color
【问题讨论】:
标签: python kivy kivy-language