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.

Author terry.reedy
Recipients BreamoreBoy, Honest Abe, Keith.Bannister, PythonInTheGrass, amaury.forgeotdarc, asvetlov, belopolsky, cgohlke, loewis, pitrou, serhiy.storchaka, terry.reedy
Date 2014-07-10.03:06:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Summarizing other messages, it seems that tkinter is intended to be thread-safe (as long tk.mainloop is started in the tk thread) and mostly is until it is not (probably from timing issue). With fresh 2.7.8 install, I ran I got the following twice:

Exception in thread Thread-12:
Traceback (most recent call last):
  File "C:\Programs\Python27\lib\", line 810, in __bootstrap_inner
  File "", line 49, in run
    self.deliverToQueue((, z, y))
  File "", line 131, in arrival_122
  File "C:\Programs\Python27\lib\lib-tk\", line 2282, in create_line
    return self._create('line', args, kw)
  File "C:\Programs\Python27\lib\lib-tk\", line 2270, in _create
    *(args + self._options(cnf, kw))))
ValueError: invalid literal for int() with base 10: 'None'

and the progrm continued. After another 100-200 launches, I tried to close the tk window and got the "python has stopped working" message from Windows. After this, every time I restart, I soon got the message again. Something seems to have been altered, though I do not see a relevant process in task manager.

I closed and reopened the command prompt process and restarted with pythonw instead of python and the program ran until too sluggish to continue. I then closed and reran and got 'pythonw has stopped working' at about launch 5. Third time ran until I closed at 50 launches. Fourth time stopped after 10 launches.

Serhiy, have any fresh insight?
Date User Action Args
2014-07-10 03:06:19terry.reedysetrecipients: + terry.reedy, loewis, amaury.forgeotdarc, belopolsky, pitrou, asvetlov, cgohlke, BreamoreBoy, PythonInTheGrass, serhiy.storchaka, Honest Abe, Keith.Bannister
2014-07-10 03:06:18terry.reedysetmessageid: <>
2014-07-10 03:06:18terry.reedylinkissue11077 messages
2014-07-10 03:06:17terry.reedycreate