python - How can I combine PyQt4 and Tornado's event loops into one application? -


i trying program application runs http server gui using tornado , pyqt4 respectively. confused how use these 2 event loops in parallel. can done multiprocessing module? should http server run in qtthread? or bash script best way go run both of these processes @ same time?

you won't need bash script. simplest write pyqt application , have application launch web server. server may in separate thread or process depending on requirements, i'd start having single thread first draft , splitting out later.

having pyqt app main thread makes sense gui going responsible user inputs (start/stop server, etc) , program outputs (server status, etc) , therefore makes sense make controlling thread references other objects or threads.


Popular posts from this blog