Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from kivy.config import Config
- Config.set('graphics', 'multisamples', '0')
- from kivy.app import App
- from kivy.lang import Builder
- kv = """
- #:import FadeTransition kivy.uix.screenmanager.FadeTransition
- #:import Clock kivy.clock.Clock
- Screen:
- BoxLayout:
- size_hint_y: None
- orientation: 'horizontal'
- height: 20
- Button:
- text: 'Go back'
- CheckBox:
- size_hint_x: None
- width: 20
- background_checkbox_normal: 'red.png'
- """
- sm = Builder.load_string(kv)
- class TestApp(App):
- def build(self):
- return sm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement