[issue5527] multiprocessing won't work with Tkinter (under Linux)

Aki report at bugs.python.org
Fri Apr 3 23:58:38 CEST 2009


Aki <akineko at users.sourceforge.net> added the comment:

Hello Jani Hakala,

Thank you very much for working on the case I created.
And, sorry for not getting back to you.

I have confirmed observation that the problem is fixed under Linux if
Tkinter is imported after fork().

However, this remains a problem for me and most other Tkinter programmers.
It is fairy common to import Tkinter using from Tkinter Import *.

This is because otherwise all Tk constants need to be prefixed with
Tkinter. That is very painful and I don't see such coding except small
examples.

If I import Tkinter module after fork(), I cannot use from Tkinter *.
Therefore this forces programmers to use Tkinter. prefix for every Tk
constants.

Is there any way to figure out the cause of this problem?
Or, is there any way to do "from Tkinter import *" after fork()?

Thank you for your help.

Aki-

----------

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


More information about the Python-bugs-list mailing list