Dec-29-2020, 10:47 AM
to access the input text you can use the textinput id newList => newList.text
from kivy.app import App from kivy.lang import Builder from kivy.properties import StringProperty from kivy.uix.textinput import TextInput kv = ''' BoxLayout: orientation: 'vertical' text: newList TextInput: id: newList Button: text: 'click' on_press: app.clicked(newList.text) ''' class MyApp(App): text = StringProperty('-.text') def build(self): return Builder.load_string(kv) def clicked(self,text_): print(text_) if __name__ == '__main__': MyApp().run()