英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论