Combining gui main loops, repls and networking - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: Combining gui main loops, repls and networking (/thread-1256.html) |
Combining gui main loops, repls and networking - Chalisque - Dec-18-2016 What I aim to do, at first as an exercise, is write a simple app server. I wish to be able to connect over a socket and send commands, talking to a simple repl, or a python interpreter. Now backdoor and eventlets appear to suffice for the socket interface. But how do I integrate this and the gtk main loop? Essentially I need a main loop which will cooperatively multitask between these. I'd like things to be python as much as possible, and using a gui toolkit that works with Wayland. (Doing the same using Qt is equally interesting.) Does anybody have some good ideas? More generally, I'd like a means to run an interactive python session where one can create gui elements and have them work without blocking the repl. This possibly means having a separate thread in C running the gui. At present I just wish to explore the possibilities |