Tkinter widget question.

Jeff Epler jepler at unpythonic.net
Tue Apr 29 02:55:43 CEST 2003


Well, you could put them into a list or dictionary yourself:

def make_and_pack_entries(parent, count, **kw):
	ret = [Entry(parent, **kw) for i in count]
	for widget in ret:
		widget.pack()
	return ret

How else would you ever keep track of multiple objects in Python?  You can
keep track of widgets in all those ways... 

Jeff





More information about the Python-list mailing list