>>105849398 (OP)A better way of doing this is to create a struct or data object that can store the relationship between the reference to the variable's text and whatever type the Root.game_options.X points to. Then create a dictionary to store this, then have the ResetUpdate functions loop through the dictionary and set the text to the associated game_option. This would make it more maintainable long term.
I don't know if you can do any of that though because this looks like Python so maybe you are doing it the best way