# This is a constant. It is a list of all settings, what they do, and what type they are. # "input_type" refers to the type of input that it will use. # "checkbox" indicates that the setting will be a simple checkbox. # "dropdown" indicates that the setting will be a dropdown. # "options" is a list of all options that the setting should have, # to prevent the user from inputting something that should not be possible. # This setting should always be ["True", "False"] on checkboxes. # "name" is the name that will be visible in the settings GUI for the user. settings = { "style": { # The "style" setting dictates how the program will look. "input_type": "dropdown", "options": [1, 2, 3], "name": "Style", "default_value": 1 }, "help_button_hide": { # The "help_button_hide" setting will hide the help box if checked. "input_type": "checkbox", "options": ["True", "False"], "name": "Hide Help Button", "default_value": "False" } } # default_dict is used to recreate the settings.json file if it is invalid or missing. default_dict = { "style": 1, "help_button_hide": "False" }