I would do it the following way: - Create a method in the UI that calls those functions you're talking about
Then, create a class that derives from QRunnable (Let's call it Updater) and has a reference to the UI class, and in its run() method calls the method that you created above
- Create a QTimer in the UI class and in its timeout(), create a new instance of the Updater class you created above, and make the global instance of QThreadPool execute it.
I would gladly post code examples, but I don't know a thing about Python , and I'm not sure whether my C++ example would be of any use to you.