Public paste
Undefined
By: Guest | Date: Sep 18 2016 03:09 | Format: Python | Expires: never | Size: 300 B | Hits: 332

  1. from kivy.uix.button import Button
  2. from kivy.uix.gridlayout import GridLayout
  3. from kivy.lang import Builder
  4.  
  5. class DHackGridLayout(GridLayout):
  6.     def on_pre_enter(self, *args):
  7.         self.add_widget(Button(text='I do nothing'))
  8.  
  9.  
  10. Builder.load_string("""
  11. <DHackGridLayout>:
  12.   ...
  13. """)