Sep-18-2020, 10:59 PM
I changed the code to the following and No matter what I do, the variable will not change from "not scratched" to "scratched"
if horse_count > 0: c1 = Checkbutton(scratches, text = horse_saddle[0] , variable = namevar1, onvalue = 'scratched', offvalue = 'not scratched' ) c1.deselect() c1.place(x=5, y=50) my_scratch_label2= Label(scratches, text =horses_name[0], fg= "black", font = ("sans_serif" , 10, 'bold')).place(x=55, y=50) if namevar1.get() == 'scratched': scratched_list.insert(0, 1)What is wrong? Driving me crazy.