Hi im having issues with using the input_type property of kivy's textinput widget. The thing is i made two custom text input one i called StrText where i set input_type = 'text'. Then a second text input named NumText with input_type = 'number'. I tested this on my phone using kivy launcher, and noticed that once i tap on the NumText input and it brings a number keyboard, if i tap on the StrText, it brings the same number keyboard instead of a normal text keyboard. If you play with it a little you'll notice mostly number key board is returned most of the time. Please is there something wrong with my code, or how can i fix this? You'll find my code below
main.py
from kivy.app import App
from kivy.uix.bubble import Bubble
from kivy.core.window import Window
class BubbleApp(App):
pass
if __name__ == '__main__':
Window.fullscreen = False
BubbleApp().run()
bubble.kv
GridLayout:
cols: 1
StrText:
height: '48dp'
size_hint_y: None
Label:
text: 'Number keyboard below'
height: '48dp'
size_hint_y: None
multiline: False
font_size: self.height * .5
NumText:
height: '48dp'
size_hint_y: None
<StrText@TextInput>:
input_type: 'text'
multiline: False
font_size: self.height * .5
<NumText@TextInput>:
input_type: 'number'
input_filter: 'int'
multiline: False
font_size: self.height *.5