'Conver a string to integer from Textinput to Label kivy
I need to convert my root.ids.input_tornillo.text in Integer for multiplying it times 2, but I got an Error in my root.ids.label_tornillo.text.. How can I fix it?
kv.py
TextInput:
id: input_tornillo
text: ""
halign: "right"
font_size: 18
multiline: True
#size_hint: (1, .15)
Label:
id: label_tornillo
text: int(root.ids.input_tornillo.text)*2
#HERE IS THE MISTAKE
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
