This commit is contained in:
yumoqing 2021-12-14 12:27:16 +08:00
parent db03b70792
commit 4fbe3ad82f
3 changed files with 7 additions and 6 deletions

View File

@ -5,7 +5,7 @@ from kivy.graphics import Color, Rectangle
from kivy.uix.boxlayout import BoxLayout from kivy.uix.boxlayout import BoxLayout
from kivy.factory import Factory from kivy.factory import Factory
from kivy.uix.image import AsyncImage 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.ready import WidgetReady
from kivyblocks.bgcolorbehavior import BGColorBehavior from kivyblocks.bgcolorbehavior import BGColorBehavior

View File

@ -1,18 +1,19 @@
from kivy.properties import BooleanProperty, StringProperty,\ from kivy.properties import BooleanProperty, StringProperty,\
ListProperty, DictProperty 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 kivyblocks.typewriterbox import TypeWriterBox
from kivy.factory import Factory from kivy.factory import Factory
class MultiSelect(TypeWriterBox): class MultiSelect(TypeWriterBox):
items = ListProperty([]) items = ListProperty([])
item_cls = DictProperty({}) item_css = DictProperty({})
item_selected_cls = DictProperty({}) item_selected_css = DictProperty({})
all_button_position = StringProperty(None) all_button_position = StringProperty(None)
default_selected=StringProperty([]) default_selected=StringProperty([])
def __init__(self, **kw): def __init__(self, **kw):
super(MultiSelectBotton, self).__init__(**kw) super(MultiSelect, self).__init__(**kw)
self.button_dic = {} self.button_dic = {}
self.value_b = {} self.value_b = {}

View File

@ -5,7 +5,7 @@ from kivy.uix.textinput import TextInput
from appPublic.registerfunction import RegisterFunction from appPublic.registerfunction import RegisterFunction
import kivyblocks.clickable import kivyblocks.clickable
import kivyblocks.multi-select import kivyblocks.multi_select
from .baseWidget import * from .baseWidget import *
from .tree import Tree, TextTree, MenuTree, PopupMenu from .tree import Tree, TextTree, MenuTree, PopupMenu