鼠标在SpinBox中的高亮触发了未知事件。

huangapple go评论72阅读模式
英文:

Mouse highlighting in a Spinbox triggers unknown events

问题

我有一个使用Python Tkinter编写的应用程序,其中包含一些典型的数字SpinBox小部件。当使用箭头键操作SpinBox或仅输入数据时,一切都正常。但是,如果使用鼠标突出显示数字中的任何一个,会触发一些我不知道的事件,这些事件导致了问题 - 字段验证事件、字段刷新等。

有没有人能够指导我查阅描述可能在幕后发生的文档?

我尝试禁用各种鼠标移动事件,但没有效果。

英文:

I have a Python Tkinter application which has some typical numeric spinbox widgets. When the spinbox is manipulated with arrow keys or data is simply entered, everything is normal. But if a mouse is used to highlight any of the numbers, some unknown (to me) events are firing which are causing problems - field validation events, field refreshes, etc..

Can anyone point me to documentation which describes what may be happening under the covers?

I've tried inhibiting the various mouse motion events, but that has no effect.

答案1

得分: 0

这里有一些互联网上的文档链接。

https://docs.python.org/3/library/tkinter.html
https://tkdocs.com/pyref/spinbox.html

请在下次提供代码片段,因为我不知道你的问题是什么。

英文:

Here are some links to documentation on the Internet.

https://docs.python.org/3/library/tkinter.html
https://tkdocs.com/pyref/spinbox.html

Please provide code snippets next time because I don't know what exactly your problem is.

huangapple
  • 本文由 发表于 2023年5月29日 11:09:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/76354468.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定