Changing the text on a label

self.labelText="change the value"

The above sentence makes labelText change the value, but not change depositLabel’s text.

To change depositLabel’s text, use one of following setences:

self.depositLabel['text'] = 'change the value'

OR

self.depositLabel.config(text="change the value")

Leave a Comment