Tkinter widget question.

Jeff Epler jepler at unpythonic.net
Mon Apr 28 20:55:43 EDT 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