0
は、私は次のコード(ほとんど直接https://kivy.org/docs/api-kivy.uix.textinput.htmlからコピー)している取る:私はこれを実行するとKivyのTextInput:例外TypeError:on_enter()は正確に2つの引数を(1与えられた)
18 def on_enter(instance, value):
19 print('User pressed enter in', value)
...
83 class UserInterface(BoxLayout):
84 def __init__(self, SomeStringList, **kwargs):
85 super(UserInterface, self).__init__(**kwargs)
...
152 def callback(self, instance):
...
205 textinput = TextInput(text='Hello world', multiline=False)
206 textinput.bind(on_text_validate=on_enter)
私は次のエラーを取得する
TypeError: on_enter() takes exactly 2 arguments (1 given)