I don’t see the issue:
from kivymd.app import MDApp
from kivy.lang import Builder
from kivymd.uix.textfield import MDTextField
kv = """
FloatLayout:
MyMDTextField:
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
size_hint_x: None
width: 200
hint_text: "Enter Text Here"
color_mode: 'custom'
"""
class MyMDTextField(MDTextField):
def on_text(self, instance, text):
if instance.text == "" or len(instance.text) < 2:
instance.line_color_focus = 1, 0, 1, 1
else:
instance.line_color_focus = 0, 0, 0, 1
class TestMDTIApp(MDApp):
def build(self):
return Builder.load_string(kv)
TestMDTIApp().run()
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/84715cc8-a37e-4698-b3f1-7646dc659e94n%40googlegroups.com.
Looks like you are seeing the latency of the url access. Do you need to do the database access on each letter? Can you prefetch or cache the database access?
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/c662d9f3-30f1-46c7-b77c-bac15edae7fbn%40googlegroups.com.
Hahahaha actually thats why I was thinking about it, using urlrequest it wo t get bugged but will get lagged which means if only, entering once entering 1st letter kivy will assume it is still no letters, once put 2nd letter kivy will assume it is only 1 letter and so on,. I need to find the names choices field, I mean how can I do that, give the user 3 names outside the list
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/5ff9b7ce.1c69fb81.c2c60.4cb1SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
I don’t understand your question.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/DBBPR09MB4699AC02A81927EBE38EC14694AD0%40DBBPR09MB4699.eurprd09.prod.outlook.com.