This commit is contained in:
yumoqing 2021-07-14 15:22:43 +08:00
parent 88a8888859
commit 8591540257

View File

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