Python Forum
Combining gui main loops, repls and networking
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Combining gui main loops, repls and networking
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  “main thread is not in main loop” in Tkinter Long_r 1 24,090 Jun-26-2019, 11:00 PM
Last Post: metulburr
  GTK main window calling a main window DennisT 4 6,691 Oct-19-2016, 09:36 PM
Last Post: DennisT

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020