kivy/examples/widgets/actionbar.py

34 lines
819 B
Python
Raw Normal View History

2013-06-16 16:10:41 +00:00
from kivy.base import runTouchApp
from kivy.lang import Builder
runTouchApp(Builder.load_string('''
2013-07-22 16:35:24 +00:00
ActionBar:
pos_hint: {'top':1}
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: 'Btn1'
ActionButton:
text: 'Btn2'
ActionButton:
text: 'Btn3'
ActionButton:
text: 'Btn4'
ActionGroup:
text: 'Group1'
ActionButton:
2013-07-22 16:35:24 +00:00
text: 'Btn5'
ActionButton:
2013-07-22 16:35:24 +00:00
text: 'Btn6'
ActionButton:
2013-07-22 16:35:24 +00:00
text: 'Btn7'
2013-06-16 16:10:41 +00:00
'''))