0
I’m with a small amount, I’m trying to limit the amount of characters that can be typed without text, for example, a DDD code, where it only takes 2 or 3 digits, limit to only a maximum of 3 numbers, but I’m not getting, I tried to accomplish from the second, but it didn’t work either, the idea was now to limit by the kivy script itself, thanks even more personal: D
Kivy code Textinput:
id: dd
pos_hint:{"center_x":.35, "center_y":.2}
size_hint:(.1,.05)
multiline:False
write_tab: False
input_filter:'int'
Code python dd = self.root.ids.dd.text
dd = maxlength (2)
I recommend reading: https://answall.com/questions/303296/limitando-a-quantityofcharacters- em-uma-string-em-python
– Gunblades
Possible duplicate of Limiting the number of characters in a Python string
– Gunblades