Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Scheduling actions to occur on specific event

I need to create a way for the user to change various settings, such as resolution or audio. This would entail running functions and changing variables. However, I do not want these functions to run immediately. I want to schedule all of these to occur when the user hits a button, "Apply changes". How might I go about doing this? What libraries could I use? I’ve already tried using the Queue library but it seems to have no way to run after a specific action.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You can have two versions of your application’s settings, probably easiest if it’s represented by a class, dictionary, or something similar.
Only when the user presses "Apply changes", the settings from the GUI overrides the application settings 🙂

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading