Hi,
I have read the docs for FocusBehavior, that i understand TextInput inherits. I got lost, and now i need your help
As per fact i have 5 TextInput widgets
TextInput:
id: IPValue1
write_tab: False
multiline: False
on_text: root.nextondot(args)
TextInput:
id: IPValue2
write_tab: False
multiline: False
on_text: root.nextondot(args)
.....
TextInput:
id: SVport5
write_tab: False
multiline: False
on_text: root.nextondot(args)
and in python
class MainView(Widget):
next = ObjectProperty()
def __init__(self, **kwargs):
super (MainView, self).__init__(**kwargs)
def nextondot(self,args):
self.myData = args[1]
if len(self.myData)>0:
if self.myData [-1:]=='.':
print '. detected'
# need to focus the next TextInput
# TODO > check for ":" for the port value (might focus port value text input when : detected)
# TODO IP info port can be validated by button or ENTER ---- TBD
else:
print 'no text input -> nothing to do here -> grab beer '
Now i want to be able to focus the next text widget when the user presses ".". I am asking for an IP and a PORT for a server. I want the user to be able to
192. <- here i want the next text input to be focused 168. <- here i want the next text input to be focused etc.
I am removing the dot from text input text and adding it back latter in the code at the final IPPort string.
Thank You