Tk's default Toplevel - counterintuitive

Greg McFarlane gregm at
Wed Aug 25 06:42:03 CEST 1999

On 20 Aug, Guido van Rossum wrote:
> "Fredrik Lundh" <fredrik at> writes:
> > Guido van Rossum <guido at> wrote:
> > > root.protocol("WM_DELETE_WINDOW", root.destroy)
> > 
> > how about making the destroy variant the
> > default?
> I can't see any reason not to do it; I believe this is the default in
> Tk anyway, but Tkinter's destroy() does a little more than Tk's
> internal destroy.  Unless I hear a clamor of complaints I'll go ahead
> and do this.

As some proof that making it the default is "a good thing", Pmw has
been doing this, behind the scenes, for some years.  No one has
complained (or clamored) yet :)

Greg McFarlane:    INMS Telstra Australia (gregm at
Today's forecast:  Sunny, with occasional cloudy periods and a chance
                   of precipitation in some areas.

More information about the Python-list mailing list