本文介绍了如何在 Tkinter 中显示工具提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
工具提示是当鼠标悬停在小部件上一段时间时弹出的那些小文本.
Tooltips are those little bits of text that popup when the mouse hovers over a widget for a certain duration of time.
如何向我的 tkinter Python 应用程序添加工具提示消息?
How can I add a tooltip message to my tkinter Python application?
推荐答案Pmw.Balloon 类将绘制工具提示.
The Pmw.Balloon class from the Pmw toolkit for Tkinter will draw tool tips.
另请看这篇博客文章,它改编了一些来自 IDLE 的代码,用于使用 Tkinter 显示工具提示.
Also take a look at this blog post, which adapts some code from IDLE used for displaying tool tips with Tkinter.
更多推荐
如何在 Tkinter 中显示工具提示?
发布评论