[Pythonmac-SIG] Tkinter problem in a forked
Russell E. Owen
rowen at cesmail.net
Mon Jun 6 19:18:34 CEST 2005
In article <59579E03-CCBE-4A8B-BCD7-BA7EEBBC3CA3 at redivi.com>,
Bob Ippolito <bob at redivi.com> wrote:
> eric texier wrote:
> > 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.
I agree (I've never used twisted framework myself, but it has a good
reputation). Another option (which I use) is tcl sockets. See, for
instance
<http://www.astro.washington.edu/rowen/TkinterSummary.html#FileHandlers>.
-- Russell
More information about the Pythonmac-SIG
mailing list