def stop_populating(self,sender):
console.hide_activity()
root=self.find_root()
self._abort=True
if not isinstance(sender,ui.Button):
#take no action
self.textfield.text=sender.items[ sender.selected_row]
def act():
if self.textfield.action:
self.textfield.action(self.textfield)
ui.delay(act,0.1)
def ani():
self.dialog.height=0
def cleanup():
root.remove_subview(root['overlay'])
ui.delay(cleanup,0.2)
ui.animate(ani,0.15)
评论列表
文章目录