Hello Helpful Journeypeople
I am looking to use GTK with PYGObject to build a GUI to display the contents of a csv file. The thing is, the file is constantly being written to (sub second frequency) and I need to have my window automatically importing changes to the csv file as they come and displaying those changes in the window. So, for example, I would import a csv at one moment and display it as:
The window would constantly check to see if there has been a change. When it detects something, the window would automatically update to, say:
I'm not sure how to do this. My first thought was to place some code in the gtk.main() loop that checked the csv file and updated the window (to be set off by the 'Start Check' button), but I'm not sure how to do this, or even if this is possible. Please, if you have any advice on how to do this, or any alternative suggestions to this initial idea, I would love to hear from you.