I hadn't thought of Tkinter, but it is an excellent idea to see how it and tulip could integrate. Maybe it is possible to add Tkinter as a file descriptor to tulip? I won't have time to look into this myself for a while but would love it if someone tried this and gave feedback.
Though not mentioned much in the tulip discussion, tkinter is a third 'T' package with its own event loop. (And by the way, I associate 'tulip' with 'Floriade', with 10s of thousands of tulips in bloom. It was a +++ experience. But I suppose it is too cute for Python ;-)
Yesterday, tk/tkinter expert Kevin Walzer asked on python-list how to (easily) read a pipe asynchonously and post the result to a tk text widget. I don't know the answer now, but is my understanding correct that in the future a) there should be a tk loop adapter that could replace the default tulip loop and b) it would then be easy to add i/o events to the tk loop?
My personal interest is whether it will some day be possible to re-write IDLE to use tulip so one could edit in an edit pane while the shell pane asynchronously waits for and displays output from a 'long' computation.* It would also be nice if ^C could be made to work better -- which is to say, take effect sooner -- by decoupling key processing from socket reading. I am thinking that IDLE could be both a simple test and showcase for the usefulness of tulip.
*I currently put shell and edit windows side-by-side on my wide-screen monitor. I can imagine putting two panes in one window instead.
--
Terry Jan Reedy
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
http://mail.python.org/mailman/listinfo/python-ideas