From d372b521c4a02c22c03a14d4352a3f57548bf8cd Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 9 Oct 2022 13:44:16 +0800 Subject: [PATCH] bugfix --- kivyblocks/baseWidget.py | 4 +++- kivyblocks/version.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/kivyblocks/baseWidget.py b/kivyblocks/baseWidget.py index a944e8a..a5eda1d 100755 --- a/kivyblocks/baseWidget.py +++ b/kivyblocks/baseWidget.py @@ -632,12 +632,14 @@ class Slider(Carousel): w = bk.widgetBuild(desc) self.add_widget(w) -i18n = I18n() +i18n = None class I18nWidget(PressableText): lang = StringProperty(None) def __init__(self, **kw): super().__init__(**kw) + if i18n is None: + i18n = I18n() self.lang = i18n.lang def on_lang(self, *args): diff --git a/kivyblocks/version.py b/kivyblocks/version.py index c15a4ac..09006f0 100644 --- a/kivyblocks/version.py +++ b/kivyblocks/version.py @@ -1 +1 @@ -__version__ = '0.3.24' +__version__ = '0.3.25'