Created on 2012-06-30 04:25 by tmaslach, last changed 2012-07-06 19:46 by terry.reedy.
|msg164367 - (view)||Author: T. Maslach (tmaslach)||Date: 2012-06-30 04:25|
I've been running into a bug recently and reduced the code to the following: import Tkinter tk = Tkinter.Tk() window = Tkinter.Frame(tk) def onDestroy (event): pass window.bind ("<Destroy>", onDestroy) Just run and the following will be displayed: Fatal Python error: PyEval_RestoreThread: NULL tstate This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. If you add window.mainloop(), the issue goes aware. However, I don't do that in my case. window.update(), by the way, still causes the crash if that is of any interest (I found this tinkering).. I'm running with: - Window 7 - Python 2.7.2 - 64-bit machine, but 32-bit Python Thanks!
|msg164748 - (view)||Author: Terry J. Reedy (terry.reedy) *||Date: 2012-07-06 19:46|
On 3.3b0, Win7, 64-64 bit, run from IDLE, script brings up empty tk window. Closing it gives prompt back in Shell window. Maslach, can you retry with 2.7.3 (bug fix is generally a good idea anyway) and maybe 64 bit version (you can install both 32 bit and 64 bit if you specify different directory -- I have done it.)
messages: + msg164748
+ loewis, gpolo|