擅长:python、mysql、java
<p>我想当你尝试绑定这个方法时,你的屏幕初始化还没有完成。试试这个:</p>
<pre><code>...
from kivy.clock import Clock
...
class TestScreen(Screen):
def __init__(self, **kwargs):
super(TestScreen, self).__init__(**kwargs)
Clock.schedule_once(self.on_start)
def on_start(self, *args):
self.ids.test_spinner.bind(text=self.on_spinner_select)
</code></pre>