Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. from kivy.config import Config
  2. Config.set('graphics', 'multisamples', '0')
  3. from kivy.app import App
  4. from kivy.lang import Builder
  5.  
  6.  
  7. kv = """
  8. #:import FadeTransition kivy.uix.screenmanager.FadeTransition
  9. #:import Clock kivy.clock.Clock
  10.  
  11. Screen:
  12.  
  13. BoxLayout:
  14. size_hint_y: None
  15. orientation: 'horizontal'
  16. height: 20
  17. Button:
  18. text: 'Go back'
  19.  
  20. CheckBox:
  21. size_hint_x: None
  22. width: 20
  23. background_checkbox_normal: 'red.png'
  24.  
  25. """
  26.  
  27. sm = Builder.load_string(kv)
  28.  
  29.  
  30. class TestApp(App):
  31. def build(self):
  32. return sm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement