如何淡入/淡出 Tkinter 框架 [英] How to fade in/out on a Tkinter Frame
本文介绍了如何淡入/淡出 Tkinter 框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您如何在 Tkinter.Frame 或任何其他小部件上淡入和/或淡出.我看到的所有示例都是针对 root (Tkinter.Tk) 或 Toplevel 设置 alpha 的,例如
How can you fade in and/or out on a Tkinter.Frame or any other widget for that matter. All of the examples that I have seen have been for either root (Tkinter.Tk) or Toplevel setting the alpha e.g.
https://stackoverflow.com/a/22491808/1552953
是否可以将其应用于单个小部件?
Is it possible to apply this to an individual widget?
推荐答案
您不能在单个小部件上执行此操作.Tkinter 中的透明度仅适用于 Tk
和 Toplevel
的实例.
You can't do it on individual widgets. Transparency in Tkinter is only available for instances of Tk
and Toplevel
.
这篇关于如何淡入/淡出 Tkinter 框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文