Canvas: changing text elements
I have created a canvas with several text elements that display the values of float variables. Here is one example of the text elements that display the value of a float variable:
upper_safe_amount = 45.00
my_canvas["upper_safe_amount"] = Text("%.2f"%upper_safe_amount,center=True, x=-256, y=-192)
Since the value of the float variable needs to change over the course of the experiment, I was wondering how to reflect these changes in the canvas text element? So, in other words, after performing changes of the float variable upper_safe_amount, what do I need to do in order to change the text displayed accordingly?
Looking forward to your suggestions 😊
Thanks in advance & best,