From aacea4c3388025979b560a38a98e26d55e1a3bb2 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: Sun, 26 Nov 2023 20:40:38 +0300 Subject: [PATCH] 2.0.0 - Material Design 3 Fix imports. --- kivymd/uix/appbar/appbar.py | 4 ++-- kivymd/uix/chip/chip.py | 9 ++++++--- kivymd/uix/segmentedbutton/segmentedbutton.py | 3 ++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/kivymd/uix/appbar/appbar.py b/kivymd/uix/appbar/appbar.py index 0d4f90958..e996985c1 100755 --- a/kivymd/uix/appbar/appbar.py +++ b/kivymd/uix/appbar/appbar.py @@ -542,10 +542,10 @@ async def generate_card(): from kivymd.uix.button import MDFabButton, MDIconButton from kivymd.uix.controllers import WindowController from kivymd.uix.label import MDLabel - -from kivymd.utils import asynckivy from kivymd.utils.set_bars_colors import set_bars_colors +import asynckivy + with open( os.path.join(uix_path, "appbar", "appbar.kv"), encoding="utf-8" ) as kv_file: diff --git a/kivymd/uix/chip/chip.py b/kivymd/uix/chip/chip.py index cb72148a8..cb0a86a32 100755 --- a/kivymd/uix/chip/chip.py +++ b/kivymd/uix/chip/chip.py @@ -242,7 +242,8 @@ def build(self): from kivymd.uix.list import OneLineIconListItem from kivymd.icon_definitions import md_icons from kivymd.uix.screen import MDScreen - from kivymd.utils import asynckivy + + import asynckivy Builder.load_string( ''' @@ -371,7 +372,8 @@ def on_start(self) -> None: from kivymd.app import MDApp from kivymd.uix.chip import MDChip, MDChipText from kivymd.uix.screen import MDScreen - from kivymd.utils import asynckivy + + import asynckivy Builder.load_string( ''' @@ -456,7 +458,8 @@ def on_start(self) -> None: from kivymd.app import MDApp from kivymd.uix.chip import MDChip, MDChipText from kivymd.uix.screen import MDScreen - from kivymd.utils import asynckivy + + import asynckivy Builder.load_string( ''' diff --git a/kivymd/uix/segmentedbutton/segmentedbutton.py b/kivymd/uix/segmentedbutton/segmentedbutton.py index a06b174c7..775105a16 100644 --- a/kivymd/uix/segmentedbutton/segmentedbutton.py +++ b/kivymd/uix/segmentedbutton/segmentedbutton.py @@ -235,7 +235,8 @@ def build(self): from kivymd.app import MDApp from kivymd.uix.boxlayout import MDBoxLayout - from kivymd.utils import asynckivy + + import asynckivy KV = '''