John Salerno wrote:

> I'm wondering, why is frame created as a local variable, and the buttons 
> as instance variables? What is the difference? Can you make frame an 
> instance variable, or vice versa?

Tkinter maintains its own widget hierarchy, and widgets don't go away 
unless you explicitly destroy them (by calling "destroy" on a widget or 
a widget parent), so you don't really need to keep references to them.

however, if you need to access a widget later on, it might be a good 
idea to save a reference to it somewhere...

</F>

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to