Progress Bar¶
Progress indicators express an unspecified wait time or display the length of a process.
Usage¶
from kivy.lang import Builder
from kivymd.app import MDApp
KV = '''
BoxLayout:
padding: "10dp"
MDProgressBar:
value: 50
'''
class Test(MDApp):
def build(self):
return Builder.load_string(KV)
Test().run()
Vertical orientation¶
MDProgressBar:
orientation: "vertical"
value: 50
With custom color¶
MDProgressBar:
value: 50
color: app.theme_cls.accent_color
API - kivymd.uix.progressbar
¶
-
class
kivymd.uix.progressbar.
MDProgressBar
¶ Bases:
kivymd.theming.ThemableBehavior
,kivy.uix.progressbar.ProgressBar
-
reversed
¶ Reverse the direction the progressbar moves.
reversed
is anBooleanProperty
and defaults to False.
-
orientation
¶ Orientation of progressbar. Available options are: ‘horizontal ‘, ‘vertical’.
orientation
is anOptionProperty
and defaults to ‘horizontal’.
-
color
¶ Progress bar color in
rgba
format.color
is anOptionProperty
and defaults to [].
-