[Tkinter-discuss] TclError when destroying parent windows

Michael O'Donnell michael.odonnell at uam.es
Sun Jun 29 13:32:11 CEST 2008


Hi Jusa,

  Can you post some sample code which causes the problem?

Mick

On Sun, Jun 29, 2008 at 1:17 PM, Jusa <sj.m at iloinen.net> wrote:
>
> Hi,
>
> I've been browsing the tkinter documentation and I just can't seem to figure
> out how to fix this problem. The problem is that I get one of the following:
>
> TclError: bad window path name ".33475080.32213232"
>
> or
>
> TclError: can't invoke "toplevel" command:  application has been destroyed
>
> when I destroy a parent window while child windows are being created. All of
> the windows are subclassed from Toplevel, and I basically have a method
> which creates a child window on a parent using the parent as the "master"
> option, and it sounds like I should check whether the parent has been
> destroyed before creating the child windows. However, I have no idea how I
> might go about doing this.
>
> Any help will be appreciated!
> --
> View this message in context: http://www.nabble.com/TclError-when-destroying-parent-windows-tp18178579p18178579.html
> Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.
>
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>


More information about the Tkinter-discuss mailing list