Change widgets.Text() type

Hi, How do I change widgets.Text() type from type=“text” to type=“number”? I want Text() to only accept numbers as an input, thanks.

Hi, I found InText and BoundedIntText. I decided to used BoundedIntText for min and max properties.