Beispiel #1
0
 def build(self):
     button = ColorButton(text='Open popup',
                          size_hint=(None, None),
                          pos_hint={
                              'center_x': 0.5,
                              'center_y': 0.5
                          })
     button.fbind('on_release', self.show_reject_book_popup)
     return button
Beispiel #2
0
 def build(self):
     Window.clearcolor = [1.0] * 4
     button = ColorButton(text='Open overlay',
                          size_hint=(None, None),
                          pos_hint={
                              'center_x': 0.5,
                              'center_y': 0.5
                          })
     button.fbind('on_release', self.open_overlay)
     return button