From 4fbe3ad82f1368a61603e537bf59e4048bf949fe Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 14 Dec 2021 12:27:16 +0800 Subject: [PATCH] bugfix --- kivyblocks/clickable.py | 2 +- kivyblocks/multi_select.py | 9 +++++---- kivyblocks/register.py | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/kivyblocks/clickable.py b/kivyblocks/clickable.py index 52957c6..c8eadde 100644 --- a/kivyblocks/clickable.py +++ b/kivyblocks/clickable.py @@ -5,7 +5,7 @@ from kivy.graphics import Color, Rectangle from kivy.uix.boxlayout import BoxLayout from kivy.factory import Factory from kivy.uix.image import AsyncImage -from kivy.properties import ObjectProperty, StringProperty, BooleanProperty +from kivy.properties import NumericProperty, ObjectProperty, StringProperty, BooleanProperty from kivyblocks.ready import WidgetReady from kivyblocks.bgcolorbehavior import BGColorBehavior diff --git a/kivyblocks/multi_select.py b/kivyblocks/multi_select.py index e395bbb..fed71a5 100644 --- a/kivyblocks/multi_select.py +++ b/kivyblocks/multi_select.py @@ -1,18 +1,19 @@ from kivy.properties import BooleanProperty, StringProperty,\ ListProperty, DictProperty -from kivyblocks.baseWidgets import VBox, PressableText +from kivyblocks.baseWidget import VBox +from kivyblocks.clickable import ToggleText, ToggleImage from kivyblocks.typewriterbox import TypeWriterBox from kivy.factory import Factory class MultiSelect(TypeWriterBox): items = ListProperty([]) - item_cls = DictProperty({}) - item_selected_cls = DictProperty({}) + item_css = DictProperty({}) + item_selected_css = DictProperty({}) all_button_position = StringProperty(None) default_selected=StringProperty([]) def __init__(self, **kw): - super(MultiSelectBotton, self).__init__(**kw) + super(MultiSelect, self).__init__(**kw) self.button_dic = {} self.value_b = {} diff --git a/kivyblocks/register.py b/kivyblocks/register.py index c3f004f..9ab9e81 100644 --- a/kivyblocks/register.py +++ b/kivyblocks/register.py @@ -5,7 +5,7 @@ from kivy.uix.textinput import TextInput from appPublic.registerfunction import RegisterFunction import kivyblocks.clickable -import kivyblocks.multi-select +import kivyblocks.multi_select from .baseWidget import * from .tree import Tree, TextTree, MenuTree, PopupMenu