Create a Python function to actively accept HTTP requests for a set amount of time -


i need create gui in python can:

  1. when button pressed, start accepting http connections 10 minutes
  2. after 10 minutes have passed, go on display text on screen

what have tried:

i have tried creating http server program in python using flask. while works, have had couple difficulties (the main ones being: keeping track of time passed start , indicating calling gui program server had finished accepting connections, since server meant stateless)

is there easier way this?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -