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 jahakala
Recipients akineko, jahakala
Date 2009-04-02.07:25:46
SpamBayes Score 4.972068e-08
Marked as misclassified No
Message-id <1238657148.57.0.394639193495.issue5527@psf.upfronthosting.co.za>
In-reply-to
Content
The script tk_test.py produces the window with one button after one
removes the line 'from Tkinter import *' and adds line 'from Tkinter
import Tk, Button' inside Panel.draw() as a first line.

So importing Tkinter after the fork seems to solve the problem.
Importing it before the fork only makes the parent process consume more
memory anyway. Maybe importing the Tkinter (and thus _tkinter) causes
some initialisation to be done. If this should be done only in the
process that utilises Tkinter there might be problems like this.
History
Date User Action Args
2009-04-02 07:25:48jahakalasetrecipients: + jahakala, akineko
2009-04-02 07:25:48jahakalasetmessageid: <1238657148.57.0.394639193495.issue5527@psf.upfronthosting.co.za>
2009-04-02 07:25:47jahakalalinkissue5527 messages
2009-04-02 07:25:46jahakalacreate