Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我从两周前开始使用 Kivymd,我想知道是否有可能将输入从“MDTextfield”更改为“int”。
我问这个是因为我希望输入介于 0 和 95 之间。
是否可以这样做,或者是否有其他方法可以从用户那里获得 0 到 95 之间的数字输入?
您必须正确设置input_filter,如下所示:
input_filter
MDTextField: input_filter: "int"