【发布时间】:2023-04-03 02:01:01
【问题描述】:
我正在运行一个程序,我在小部件中显示 .gif 图像,它运行良好但是当我使用 kivy 启动器运行这个应用程序时,即使图像没有背景,.gif 图像也会带有一个方形框.
任何人都有任何想法,为什么这在 android 和 windows 上表现不同。
请参阅下面的 .kv 代码作为我如何使用 .gif 图像的示例。我将此 .gif 图像用作按钮。
<ButImage@ButtonBehavior+AsyncImage>
canvas.before:
Color:
rgb: (0, 0, 1)
PushMatrix
Rotate:
axis: 0,0,1
angle: 20
origin: self.center
source: "images/butterflybluex.gif"
canvas.after:
PopMatrix
...
【问题讨论】: