global location
location = 3.1
def optionmenu_callback(event):
choice = combobox.get()
if choice == "Head":
location = 3
if choice == "Chest":
location = 37
if choice == 'Legs':
location = 67
if choice == 'Feet':
location = 97
combobox = CTkComboBox(master=self.mainFrame,
values=["Head", "Chest", "Legs", "Feet"])
combobox.set("Head") #Startup Value
combobox.grid(row=6, column=0, padx=20, pady=10)
combobox.bind("<<ComboboxSelected>>", optionmenu_callback)