📌  相关文章
📜  kivy 标签背景颜色 kv 文件 - 任何代码示例

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

代码示例1
Label:
        text: "Storm"
        size_hint: .6 , .15 #any size you want
        pos_hint:{"x":.18, "y":.8} #any position you want
        background_color: ((20/255,32/255,40/255,1)) #red,blue,green,clear numbers between 0-255
        canvas.before:
            Color:
                rgba: self.background_color
            Rectangle:
                pos: self.pos
                size: self.size