Yes you understood my question just fine. Cool I definitely didn't think of the getter setting thing, thanks! Also I think I'll try and use your last example in my MachineClass so that it's all handled there instead of in my GUI file.
Otherwise I guess I'll just take the long way to do the increase/decrease and make 2 functions for all 40 settings that I have. That way I don't have to pass any args through the button command.
If I "go the long way" and the amount of code is higher (as in more actual text) it's not like it actually will slow down the program right? Just means the script might be a few kb bigger, which seems harmless.
Otherwise I guess I'll just take the long way to do the increase/decrease and make 2 functions for all 40 settings that I have. That way I don't have to pass any args through the button command.
If I "go the long way" and the amount of code is higher (as in more actual text) it's not like it actually will slow down the program right? Just means the script might be a few kb bigger, which seems harmless.