On Jun 5, 2005, at 9:28 PM, eric texier wrote: > --- Bob Ippolito <[EMAIL PROTECTED]> wrote: > >> >> On Jun 4, 2005, at 8:05 AM, Eric Texier wrote: >> >> >>> I am having trouble with running tk in a child process. the code >>> >> >> >>> worked >>> on linux. >>> It crashed with the following message: >>> >>> creating window in receptionist >>> Tcl_FinalizeNotifier: notifier pipe not initialized >>> Abort >>> >>> Any idea if it's a bug or something extra that I need to do of >>> >> macox. >> >> On Mac OS X, you almost always need to fork/exec if you're using >> GUI >> stuff. There's too much shared state with fork alone, which can >> cause strange behavior as you've noticed. >> > Thank you for you quick anwser. > I am getting an error well documented: > RuntimeError: _tkinter.createfilehandler not supported for threaded > Tcl > I am using the Aqua Batteries-Included and I was wondering if it was > easy/recommended to rebuild the package with the single threaded > option or will the x implementation be a better solution if I want to > be sure that what ever I am doing can run on linux.
Don't do that. Just use a separate thread to monitor the file handle on select() or something. Twisted could do this for you with the threadedselectreactor (in svn) <http://bob.pythonmac.org/archives/ 2005/04/17/twisted-and-foreign-event-loops/>. Similar things could be done by hand. -bob _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig