This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: call to tkinter.messagebox.showinfo hangs the script on timer on Windows
Type: Stage:
Components: Tkinter, Windows Versions: Python 3.2
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Richard86, gpolo, ned.deily
Priority: normal Keywords:

Created on 2011-09-24 10:44 by Richard86, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test1.py Richard86, 2011-09-24 10:44 Python script that illustrates the error
Messages (4)
msg144496 - (view) Author: (Richard86) Date: 2011-09-24 10:44
Call to tkinter.messagebox.showinfo("Test", "test") makes the script hang in Windows 7 with Python 3.2.2 with Timer(2, methodname, ()).start().
msg144693 - (view) Author: (Richard86) Date: 2011-09-30 16:01
This is a serious problem. I REALLY hope that someone on a Windows machine can either confirm the bug by reproducing with provided example code or disprove it.
msg144699 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2011-09-30 19:25
The problem can be reproduced on some other platforms depending on the version of Tcl/Tk in use.  But the supplied program violates the well-known if not particularly well-documented restriction of tkinter programming that all Tk UI operations must be on the main thread.  See, for example, http://effbot.org/zone/tkinter-threads.htm  or http://tkinter.unpythonic.net/wiki/mtTkinter
msg144702 - (view) Author: (Richard86) Date: 2011-09-30 20:03
You nailed it. Thank you very much! (I really thought it was a bug, since the code ran well on Linux.)
History
Date User Action Args
2022-04-11 14:57:21adminsetgithub: 57249
2011-09-30 20:03:17Richard86setmessages: + msg144702
2011-09-30 19:25:28ned.deilysetstatus: open -> closed

nosy: + ned.deily
messages: + msg144699

type: crash ->
resolution: not a bug
2011-09-30 16:01:30Richard86setmessages: + msg144693
2011-09-25 21:26:51Richard86setnosy: + gpolo
2011-09-24 20:21:45Richard86settitle: call to tkinter.messagebox.showinfo hangs the script after timer -> call to tkinter.messagebox.showinfo hangs the script on timer on Windows
2011-09-24 10:52:28Richard86settitle: call to tkinter.messagebox.showinfo hangs the script -> call to tkinter.messagebox.showinfo hangs the script after timer
2011-09-24 10:44:06Richard86create