"Emeka" <emekami...@gmail.com> 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 Program web site
http://www.alan-g.me.uk/


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to