📜  kivy 标签背景 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:11.387000             🧑  作者: Mango

代码示例1
Label:
        text: "the text"
        font_size: self.width/5
        size_hint: .6 , .15
        pos_hint:{"x":.18, "y":.8}
        background_color: ((20/255,32/255,40/255,1))
        canvas.before:
            Color:
                rgba: self.background_color
            Rectangle:
                pos: self.pos
                size: self.size