Pardon me if this is a beginner question..
While I am using a text field which triggers this 'paint_distance', as soon as there is a change in value in that text field, it will updates the values in the dict accordingly.
However as its initial variable name is 'paintDistance', I changed it to 'paint_distance' and this updating is no longer working.
I did a double/triple check to make sure that all 'paintDistance' names are changed to 'paint_distance' and only in the above code, only 'spPaintDistance' exists in that
code portion above.
Also. any changes in the naming such as 'paintDist' etc will simply not work.
# Before any value change
>>> 1. spPaintDistance
>>> 2. 10
>>> 3. paint_distance
Suppose I am changing the value from 10 to 5, it still reflects as 10.
# After any value change
>>> 1. spPaintDistance
>>> 2. 10
>>> 3. paint_distance
It will only change to value of 5 unless I remove the underscores and change it to 'paintDistance' which is its default name that was given in the first place.
Suppose I am changing the value from 10 to 5, it still reflects as 10.
# After any value change
>>> 1. spPaintDistance
>>> 2. 5
>>> 3. paintDistance
Anyone can enlighten me on this part?