Updating Json without restarting
-
Hello!
My name is Bart and i am a developer / ethical hacker for an organisation named Computest. I am currently working on our open-source tool Compuracer (https://github.com/computestdev/CompuRacer) but I have a problem. The tool works that it updates json files everytime something changes. I made a GUI in PyQt5 and wanted to make it dynamic so when json reloads it does not need to restart the complete GUI like it is doing right now. How do I do this? How do I make the GUI reload all the data again without having a 1 second blackscreen because of reloading the GUI per 10 seconds? You can check the code I have now in /Compuracer_Core/src/gui.py
Kind Regards,
Bart van Wijk
@Computest -
@WolkenVacht
Qt does not use JSON files for its UI definition. If you use JSON for some purpose of your own and change it it's up to you what you do about "reloading", we don't know why you make it "restart the complete GUI like it is doing right now". -
@JonB
Thanks for your reply. I make it right now like that because I dont know how to make the GUI reload by itself without restarting. As I said in my early message, I want it to just reload the data every 5 seconds or 10 seconds, so reading the file out again and change the data in the table to the new data. Is this possible? I tried many things but it did not work. -
@WolkenVacht said in Updating Json without restarting:
Is this possible? I tried many things but it did not work.
yes its possible. I did it many time and it did work.
-