Cloud Stack Ninja

Having trouble displaying a variable for the Tkinter Label Code example

q=StringVar()
q="blah blah" 

test = Label(main, textvariable=q)
test.pack()

I try this code and nothing displays. I have also tried

q="blah blah"
test = Label(main, text= )+q 
test.pack()

but that still doesn't. I want label to display "blah blah" when I run.



Read more here: https://stackoverflow.com/questions/64412816/displaying-tkinter-label-with-a-variable

Content Attribution

This content was originally published by Oliver Almonte at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: