From 756720617b37e5d04d075bfd9e52138faa0b0592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=AE=D1=80=D0=B8?= =?UTF-8?q?=D0=B9?= Date: Sat, 18 May 2024 16:07:06 +0300 Subject: [PATCH] Added an inherited class for the `MDLinearProgressIndicator` widget --- kivymd/uix/progressindicator/progressindicator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kivymd/uix/progressindicator/progressindicator.py b/kivymd/uix/progressindicator/progressindicator.py index 2e5051206..db71762eb 100755 --- a/kivymd/uix/progressindicator/progressindicator.py +++ b/kivymd/uix/progressindicator/progressindicator.py @@ -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"), @@ -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.