master
yumoqing 2021-07-14 15:22:43 +08:00
parent 88a8888859
commit 8591540257
1 changed files with 0 additions and 4 deletions

View File

@ -184,7 +184,6 @@ class MyDropDown(DropDown):
return ''
def setData(self,data):
Logger.info('TextInput: setData data=%s', data)
self.si_data = data
self.clear_widgets()
h = self.options.get('height',2.5)
@ -209,7 +208,6 @@ class MyDropDown(DropDown):
self.setData(d)
def showme(self,w):
print('show it ',w)
self.target = w
self.open(w)
@ -237,7 +235,6 @@ class SelectInput(BoxLayout):
newkw = {}
newkw.update(kw)
newkw.update({'on_select':self.setData})
print('selectinput:kw=', newkw)
self.dropdown = MyDropDown(**newkw)
if kw.get('value'):
self.si_data = kw.get('value')
@ -257,7 +254,6 @@ class SelectInput(BoxLayout):
def showDropdown(self,instance,yn):
# if self.collide_point(*touch.pos):
if yn:
print('focus(): .....')
self.tinp.focus = False
self.dropdown.showme(self)
self.old_value = self.getValue()