"Trey Keown" <[EMAIL PROTECTED]> wrote

I just spotted something.

> for (tag,val) in attrs.iteritems():
>    for tag in window_attrs_key_order:
>      print "%s%s = Tk()" %(whitespace, val)

etc...

You set tag and val in the outer loop, then you change 
tag in the innrter loop but you never change val.
Thus for each tag in your list you print the same val.

Then you gpo bavk to the outer loop and do the same 
for the next val. You need to rething your variable 
naming and how you access the val.


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to