Skip to content

Instantly share code, notes, and snippets.

@bkuri
Created October 13, 2013 20:19
Show Gist options
  • Save bkuri/6966975 to your computer and use it in GitHub Desktop.
Save bkuri/6966975 to your computer and use it in GitHub Desktop.
sample kv layout file.
#:kivy 1.7.1
#:set bg [0.55,1,0.25,0.1]
#:set fg [0.55,1,0.25,1]
#:set font 'lib/fonts/envy_code_r_normal.ttf'
<Dashboard>:
gauges: big_bottom, big_top, small_bottom, small_mid_bottom, small_mid_top, small_top
Gauge:
area: 800, 400
color_bg: bg
color_labels: fg
color_value: fg
font_name: font
font_size: '200sp'
id: big_bottom
line_width: 20
mode: 2
pos: 0, 0
Gauge:
area: 800, 400
color_bg: bg
color_labels: fg
color_value: fg
font_name: font
font_size: '200sp'
id: big_top
line_width: 20
mode: 1
pos: 0, 400
Gauge:
area: 400, 200
color_bg: bg
color_labels: fg
color_value: fg
font_name: font
font_size: '100sp'
id: small_bottom
mode: 1
pos: 760, 0
Gauge:
area: 400, 200
color_bg: bg
color_labels: fg
color_value: fg
font_name: font
font_size: '100sp'
id: small_mid_bottom
mode: 2
pos: 880, 200
Gauge:
area: 400, 200
color_bg: bg
color_labels: fg
color_value: fg
font_name: font
font_size: '100sp'
id: small_mid_top
mode: 1
pos: 880, 400
Gauge:
area: 400, 200
color_bg: bg
color_labels: fg
color_value: fg
font_name: font
font_size: '100sp'
id: small_top
mode: 2
pos: 760, 600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment