[issue989712] Support using Tk without a mainloop

Roger Serwy report at bugs.python.org
Mon Mar 26 20:42:29 CEST 2012


Roger Serwy <roger.serwy at gmail.com> added the comment:

There's a subtle bug in the currently applied patch.

    import tkinter
    a = tkinter.Tk()
    b = tkinter.Tk()

Closing the first window will prevent closing the second window. This example may seem abstract, but it is a real issue especially when using matplotlib with multiple figures.

Attached is a patch that incorporates what IdleX uses for driving the Tk/Tcl event loop.

----------
nosy: +serwy
status: closed -> open
Added file: http://bugs.python.org/file25031/issue989712.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue989712>
_______________________________________


More information about the Python-bugs-list mailing list