You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we try to delete a character after the on_text_validate method is triggered, it is impossible to erase the characters in the text field, but I found out that its triggering is optional, it is enough to defocus the field with this method.
fromkivy.appimportAppfromkivy.core.windowimportWindowfromkivy.lang.builderimportBuilderWindow.keyboard_anim_args= {'d': .25, 't': 'in_out_expo'}
Window.softinput_mode="below_target"KV="""BoxLayout: orientation: 'vertical' spacing: dp(10) padding: dp(10) TextInput: id: first hint_text: 'Simple text input' TextInput: id: first hint_text: 'Text input with `on_text_validate` method' on_text_validate: self.focus = False TextInput: # <- BUG id: first hint_text: 'Text input with `on_text_validate` method and `multiline: False`' on_text_validate: self.focus = False multiline: False"""classTestApp(App):
defbuild(self):
returnBuilder.load_string(KV)
TestApp().run()
DEMO.mp4
The text was updated successfully, but these errors were encountered:
Software Versions
When we try to delete a character after the
on_text_validate
method is triggered, it is impossible to erase the characters in the text field, but I found out that its triggering is optional, it is enough to defocus the field with this method.DEMO.mp4
The text was updated successfully, but these errors were encountered: