def onGoTo(self):
if self.loaded == 'Yes':
popup = BoxLayout(
orientation='vertical',
size=self.size,
pos=self.pos)
self.goto_popup = Popup(title='Go To' +
' (1~' +
str(len(self.data_view)) +
')', content=popup, size_hint=(0.9, 0.25), auto_dismiss=False)
self.goto_textinput = TextInput()
cancel = Button(text='Cancel', on_release=self.dismiss_goto_popup)
ok = Button(text='Ok', on_release=self.goto_ok)
buttons = BoxLayout(size_hint_y=None, height=self.height / 20)
buttons.add_widget(cancel)
buttons.add_widget(ok)
popup.add_widget(self.goto_textinput)
popup.add_widget(buttons)
self.goto_popup.open()
评论列表
文章目录