def build(self):
floater = FloatLayout()
self.widget = Button(text='herpderp', pos = (200,200), size_hint=(0.2,0.2))
self.backbutton = Button(text='back', pos=(0,0), size_hint =(0.1,0.2))
self.widget.bind(on_press=self.animate)
self.backbutton.bind(on_press=self.back)
floater.add_widget(self.widget)
floater.add_widget(self.backbutton)
return floater
评论列表
文章目录