Skip to content

Instantly share code, notes, and snippets.

@inclement
Created October 17, 2018 22:26
Show Gist options
  • Select an option

  • Save inclement/fd2b4f5d59d156e0b37c8ec6a126a82e to your computer and use it in GitHub Desktop.

Select an option

Save inclement/fd2b4f5d59d156e0b37c8ec6a126a82e to your computer and use it in GitHub Desktop.
from kivy.lang import Builder
from kivy.base import runTouchApp
root = Builder.load_string("""
BoxLayout:
id: main_view
orientation: 'horizontal'
Widget:
id: sidebar
size_hint_x: None
width: dp(100)
canvas:
Color:
rgba: 1, 0, 0, 1
Rectangle:
pos: self.pos
size: self.size
Widget:
id: play_view
size_hint_x: None
canvas:
Color:
rgba: 0, 1, 0, 1
Rectangle:
pos: self.pos
size: self.size
""")
runTouchApp(root)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment