Tkinter application 'freezes' while continually polling Pipe for contents (multiprocessing)

后端 未结 4 581
北荒
北荒 2021-01-27 09:21

I have two scripts:

Processor_child.py: Its purpose is to perform a number of data analysis and cleaning operations. This must perform the same operatio

4条回答
  •  抹茶落季
    2021-01-27 09:41

    Consider writing your app in a client-server fashion.

    The client, is the Tk app, which can connect to the server. the server, simply executes whatever the client requires. this way, you can detach the processing. there are several ways you can do this, like cherrypy, rabbitmq and similar.

    Recently, in desktops apps, I've used Electron, to connect to a cherrypy server, and AJAX requests from Electron using Javascript. the final icon simply starts both, the server and the client. this allows me to have a richer widget set, since the web is more powerful than Tk.

    That will allow you in a possible future to have a webapp.

    HTH

提交回复
热议问题