As shown below, Function 1 calls another function (draw_text) so that I can display my output / result to a label within the canvas out my GUI. This all work great (thanks to Stack Overflow!!)
# Function 1
def Relay_1():
arduinoData.write(b'1')
draw_text(self, 'This is a Test')
# Function 2
def Relay_():
arduinoData.write(b'1')
draw_text(self, 'This is another test number 2')
#Function 3
def draw_text(self, text):
self.canvas.create_text(340,330, anchor='center', text=text,
font=('Arial', '10', 'bold'))
Now my question:
How do I clear the "contents of the label" that has been created so each time I call Function 1 or 2, the result on the canvas will refresh / update. Currently the text message just overwrites itself.