How to make text box only accept numbers?

I don’t see a way to disable it but I have just give a try and here is a quick work around to solve this : Do a function in graph : From spinbox : get value / set min slider value and set max slider value". Use function on event construct and on value changed. Spin seems not working.