Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextInput().do_cursor_movement() doesn't work #6783

Open
theholzcode opened this issue Mar 16, 2020 · 0 comments
Open

TextInput().do_cursor_movement() doesn't work #6783

theholzcode opened this issue Mar 16, 2020 · 0 comments

Comments

@theholzcode
Copy link

Software Versions

  • Python: 3.6.9
  • OS: Linux Mint 19.3 Tricia
  • Kivy: 1.11.1
  • Kivy installation method: Compiled From Source

I was working in a DataRegister software and needed to create an interactive "date input", basically it would be a textinput that auto-complete your text with bars ('/') while you type. Include the bars was really easy, i didn't know yet how to use insert_text() so i tried to do textinput.text += '/' and then textinput.do_cursor_movement('cursor_right') (already tried with 'cursor_end' and with control=True) and then print(cursor). The bar was put after the text but the cursor didn't change it's position (remaining before the bar).
OBS: i even tried to bruteforce cursor's position by self._cursor = (self.cursor[0]+1, self.cursor[1]) and print(cursor). Print showed that, this time, the cursor changed, but in the app window it doesn't, remaining before the bar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant