"Emeka" wrote
Is the below the standard way of checking the content of Label in
"if"
statement?
root = Tk()
label = Label(root , text = "pure")
if label["pure"] == "pure":
Almost, but the index should be 'text':
if label["text"] == "pure":
HTH,
--
Alan Gauld
Author of the Learn to Pro
Alan,
Thanks so much.
Is the below the standard way of checking the content of Label in "if"
statement?
root = Tk()
label = Label(root , text = "pure")
if label["pure"] == "pure":
Regards,
Emeka
On Wed, Feb 16, 2011 at 10:13 AM, Alan Gauld wrote:
>
> "Emeka" wrote
>
> in order to change
"Emeka" wrote
in order to change "text" , I could do the this
label[text] = "pool"
I do know that there is something like this..
label.configure(text = "pool")
For singlealue changes it's largely a matter of taste
but I personally use the dictionary form for a single
value change and co