Re: [Tutor] Tkinter's Label

2011-02-16 Thread Alan Gauld
"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

Re: [Tutor] Tkinter's Label

2011-02-16 Thread Emeka
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

Re: [Tutor] Tkinter's Label

2011-02-16 Thread Alan Gauld
"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