Why widgets become 'NoneType'?
woooee
woooee at gmail.com
Wed Dec 21 12:45:46 EST 2011
More information about the Python-list mailing list
Wed Dec 21 12:45:46 EST 2011
- Previous message (by thread): Why widgets become 'NoneType'?
- Next message (by thread): Why widgets become 'NoneType'?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The error is with the labels not the canvas. All labels will have an id of "None" as that is what pack() returns. lbl = Label(win, text=astr[i]).pack(side=LEFT ) labels.append(lbl) The error will come up in the config_labels function when the program tries to config a tuple of "None", if not before. Other than that, the previous suggestion, post the entire error message so we know where an what is happening, is required to debug further.
- Previous message (by thread): Why widgets become 'NoneType'?
- Next message (by thread): Why widgets become 'NoneType'?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list