Hello All,
I have a website running on Flask with an HTML file being served out displaying information, running scripts via user button input, etc. One of the functions of the webpage is to display the current data from a python file (which the accompanying application is built with).
I would like to set up text fields or some other display fields at the correct row and column location to fit with everything else, and then have each of these fields represent the data from a particular line of the python file.
For context, these are PIN numbers that reside on the python file but are reset when they are used and so need to “refresh” or update in the HTML file. If a page refresh has to be done for this then I could live with it but I’d prefer it to update automatically (if at all possible).
I had the idea to get a regular text input field and somehow make the input the data from the file but I have no idea how to go about this. I’ve searched high and low for an answer. Perhaps someone can give me a nudge in the right direction.