Skip to content

Instantly share code, notes, and snippets.

@quapka
Created October 5, 2014 16:05
Show Gist options
  • Save quapka/770b741877cc8dab5c9e to your computer and use it in GitHub Desktop.
Save quapka/770b741877cc8dab5c9e to your computer and use it in GitHub Desktop.
<MyScreenManager>:
MainMenuScreen:
<MainMenuScreen>:
name: 'MainMenuScreen'
ScrollView:
size_hint_x: None
width: root.width
effect_cls: 'ScrollEffect'
bar_width: 10
bar_color: 0.6,0.6,0.6,1
BoxLayout:
canvas.before:
Color:
rgba: 0,0.2,0.5,0.6
Rectangle:
pos: self.pos
size: self.size
size_hint_x: None
width: root.width * 2
orientation: 'horizontal'
BoxLayout:
orientation: 'vertical'
size_hint_x: None
width: self.parent.width / 2
pos: self.parent.width / 2, 0
Button:
size_hint_x: None
width: self.parent.width
Button:
size_hint_x: None
width: self.parent.width
Button:
size_hint_x: None
width: self.parent.width
Button:
size_hint_x: None
width: self.parent.width
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment