2 questions

1 > When writing a script ( with Draw events) in the text editor and modifying it, I have to reload the text file for Blender to take account of the modified code . What am I doing wrong ?

2 > I make a Number button, how can I get the float input ( the number the user give to the button) for using it in the program ?

thank you guys !

(I made a mistake : start learning python, I can’t stop now !)

If you have a button object called like this :


The value is in .val: