Answer the question
In order to leave comments, you need to log in
How to display data from input in kivy?
Hello! I can’t figure out how to display the data that the user enters in the input
I’ll say right away that almost all the code I have is in kv files.
Here is the code:
text_1 : text_1
TextInput:
id: text_1
Button:
text: 'Save'
on_press:
root.text_input_1(text_1)
class Screen2_2(BoxLayout):
def text_input_1(self, text_1):
print (text_1)
Answer the question
In order to leave comments, you need to log in
class Screen2_2(BoxLayout):
def text_input_1(self, text_1):
print (text_1.text)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question