本文介绍了UI编辑控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只需要为编辑输入浮动/整数值。我的UI中的控件。我应该允许输入字母。
如何检查这种情况?
谢谢
PSB
Hi,
I need to enter only float/integer values for the "Edit" controls in my UI.I should allow to enter "alphabets".
How to check this condition?.
Thanks
PSB
推荐答案
??? Tkinter有:
??? Tkinter has:
对不起,我不允许用户输入''Text'',允许用户输入float / int。价值。
-PSB
Sorry ,I should not allow user to enter ''Text'',user is allowed to enter "float/int" values.
-PSB
进入什么样的小部件????
如果您使用的是Tkinter.Entery(),我可以提供我写的子类。
Enter into what kind of widget????
If you are using Tkinter.Entery()s, I can provide subclasses that I wrote.
这篇关于UI编辑控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!