Kivy语言是否支持十六进制颜色值如
#F05F40
非常感谢!
最佳答案
Kivy 有 utils
模块 get_color_from_hex做工作的功能:
#:import utils kivy.utils
<Widget>:
canvas.before:
Color:
rgb: utils.get_color_from_hex('#F05F40')
Rectangle:
pos: self.pos
size: self.size
请注意,您应该 import kvlang 中的模块。
关于Python Kivy 语言颜色属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39976475/