UI编辑控件 [英] UI Edit Controls

查看:91
本文介绍了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

推荐答案





我需要只为编辑输入浮点/整数值我的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
Entry
??? Edit ???



??? Tkinter有:
??? Tkinter has:
文字

条目

???编辑???
Text
Entry
??? Edit ???



对不起,我不允许用户输入''Text'',允许用户输入float / int。价值。


-PSB

Sorry ,I should not allow user to enter ''Text'',user is allowed to enter "float/int" values.

-PSB



对不起,我不应该允许用户输入''文本'',允许用户输入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编辑控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆