Scheduling actions to occur on specific event
Question:
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.
Answers:
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 🙂
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.
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 🙂