开发者

tkinter: mouse lag on links

Writing an application in python/Tkinter, I sometimes have a page with a number of hyperlinks (defined by the class HyperlinkManager, in http://effbot.org/zone/tkinter-text-hyperlink.htm).

I noticed that if a开发者_如何学Go large number of links is present, the mouse develops a bit of lag when hovering on the links. Do you know if this is typical in Tkinter apps, or if there are countermeasures?

alessandro


There is no particular slowness in Tkinter's handling of tag enter and leave bindings for a reasonable number of tags that I'm aware of, though there may be inefficiencies in the implementation of the HyperlinkManager class. And certainly, what you do with those enter/leave events can introduce some lag. Since entering and leaving can happen very rapidly, if the code is slow it will introduce some lag.

Is it possible for you to give a small example program that shows this lag that you're seeing?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜