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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -