Code:
Mods = {"links_too":[module_1,module_2,module_3,module_4,module_5,module_6],"Buttons":[],"previous":Mods}
module_1 = {"links_too":[],"Buttons":[],"previous":Mods}
def create_menu_buttons():
global Mods
for x in Mods["links_too"]:
x = ttk.Button(window,text=x,command=nav_load_menu(x))
the goal of the code is to create a button for each dictionary in the "links_too"
section. to do this all the buttons need names so i am naming then by the name of the dictionary. i know this will cause issues as it will have the same name as the dictionary itself but i do not know of another way to do this.
Is there a way to do this in the for loop where the buttons will have different names.