我有一个名为compare image的方法,它将保存的文件和摄像头捕获的人脸进行比较
有时候需要很长时间来处理,
我希望我可以使用像加载条这样的动画,或者我可以使用.gif文件
直到所有过程完成
这是我的代码示例
def compareimage(id):
try:
loadimage()
compareimage()
insertlogintodatatabase()
savelogimage()
except:
exception()
我希望我能在整个过程中创作出动画
如何创建它
在这里输入代码
Tags:
我不太明白你所说的“动画”是什么意思,因为它可能意味着很多事情。如果您试图在tkinter中创建一个进度条,那么导入tkinter.ttk就可以了!确定进度条的代码:
您还可以将模式设置为“不确定”,然后启动进度条,这可能是您想要的。如果你说的是自定义动画,那就有点不同了。如果 如果要在tkinter中创建自定义进度条,则应使用画布小部件。tkinter中使用画布的自定义进度条示例:
相关问题 更多 >
编程相关推荐