Skip to content

Commit

Permalink
Added an inherited class for the MDLinearProgressIndicator widget
Browse files Browse the repository at this point in the history
  • Loading branch information
HeaTTheatR committed May 18, 2024
1 parent 65a910e commit 7567206
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kivymd/uix/progressindicator/progressindicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def build(self):

from kivymd import uix_path
from kivymd.theming import ThemableBehavior
from kivymd.uix.behaviors import DeclarativeBehavior

with open(
os.path.join(uix_path, "progressindicator", "progressindicator.kv"),
Expand All @@ -212,11 +213,12 @@ def build(self):
Builder.load_string(kv_file.read())


class MDLinearProgressIndicator(ThemableBehavior, ProgressBar):
class MDLinearProgressIndicator(DeclarativeBehavior, ThemableBehavior, ProgressBar):
"""
Implementation of the linear progress indicator.
For more information, see in the
:class:`~kivymd.uix.behaviors.declarative_behavior.DeclarativeBehavior` and
:class:`~kivymd.theming.ThemableBehavior` and
:class:`~kivy.uix.progressbar.ProgressBar`
classes documentation.
Expand Down

0 comments on commit 7567206

Please sign in to comment.