def onSearch(self):
popup = BoxLayout(orientation='vertical', size=self.size, pos=self.pos)
self.search_popup = Popup(
title='Search', content=popup, size_hint=(
0.9, 0.25), auto_dismiss=False)
self.search_textinput = TextInput()
cancel = Button(text='Cancel', on_release=self.dismiss_search_popup)
ok = Button(text='Ok', on_release=self.search_ok)
buttons = BoxLayout(size_hint_y=None, height=self.height / 20)
buttons.add_widget(cancel)
buttons.add_widget(ok)
popup.add_widget(self.search_textinput)
popup.add_widget(buttons)
self.search_popup.open()
评论列表
文章目录