Skip to content

Instantly share code, notes, and snippets.

@aron-bordin
Created July 12, 2015 16:41
Show Gist options
  • Save aron-bordin/cfcf77b70380a6857fbf to your computer and use it in GitHub Desktop.
Save aron-bordin/cfcf77b70380a6857fbf to your computer and use it in GitHub Desktop.
from kivy.base import runTouchApp
from kivy.lang import Builder
runTouchApp(Builder.load_string('''
ActionBar:
pos_hint: {'top':1}
btn: btn
ActionView:
use_separator: True
ActionPrevious:
title: 'Action Bar'
with_previous: False
ActionOverflow:
ActionButton:
text: 'Btn0'
icon: 'atlas://data/images/defaulttheme/audio-volume-high'
ActionButton:
text: 'Print width'
on_release: print(btn.width)
ActionGroup:
text: 'Group 1'
mode: 'spinner'
ActionButton:
id: btn
text: 'Btn'
minimum_width: 500
'''))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment