I run another gtk window to show my application, in the same time I want to run Flask.run(host:'0.0.0.0'). Flask still processing when I close my gtk.window that run my app. Can anybody help?
here is the code :
import multiprocessing
import opx
import app
def worker(file):
if file == 'opx':
opx.main()
else :
app.apx.run(host='0.0.0.0')
if __name__ == '__main__':
files = ["opx","app.py"]
for i in files:
p = multiprocessing.Process(target=worker(i))
p.start()
p.join()