Skip to content

Instantly share code, notes, and snippets.

@DeastinY
Created April 28, 2016 19:12
Show Gist options
  • Save DeastinY/de16b83340f0fda9e8224550b2908b8f to your computer and use it in GitHub Desktop.
Save DeastinY/de16b83340f0fda9e8224550b2908b8f to your computer and use it in GitHub Desktop.
#!/usr/bin/python
# -*- coding: latin-1 -*-
#:kivy 1.9.0
#:import NavigationDrawer kivy.garden.navigationdrawer
#:import RandChar chargen.randchar
<WrapLabel@Label>:
text_size: self.size
<SidePanel@GridLayout>:
cols: 1
rows: 3
Button:
text: "Generate"
height: 70
size_hint_y:None
Button:
text: "Database"
height: 70
size_hint_y:None
Label:
text: "text"
text_size: self.size
font_size: 25
valign: 'top'
halign: 'left'
padding: (5,5)
<TopBar@GridLayout>:
cols: 2
rows: 1
height: 50
size_hint_y: None
padding: [10,0,10,0]
Button:
text: "Menu"
on_press: nav.toggle_drawer()
width: 50
size_hint_x: None
Label:
text: "Roll your NPC"
font_size: 30
italic: True
<MainPanel@GridLayout>:
cols: 1
rows: 2
padding: [0,10,0,0]
TopBar:
RandChar:
NavigationDrawer:
id: nav
anim_type: 'slide_above_anim'
SidePanel:
MainPanel:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment