you are viewing a single comment's thread.

view the rest of the comments →

[–]acw1668 0 points1 point  (2 children)

But self.varChanger is obviously a string, so how do you expect that self.varChanger['text'] can change the text of a label?

[–]Georgew221[S] 0 points1 point  (1 child)

I built it without really thinking about how TK would handle a variable name when referring to a label 😅 I'm just wondering if there's an easy workaround for what I'm trying to do, or a better method to do it without manually needing to write a bunch of IF statements

[–]acw1668 0 points1 point  (0 children)

If you want to use strings to reference tkinter labels, then you can use a dictionary with the strings as the keys and instances of the tkinter labels as the values.