If you want to switch boolean values, I suggest you use add_checkbutton() instead of add_radiobutton() .
Using radio, you only have the static parameter value , which does not change when you click on a record. On the other hand, control buttons allow you to change the onvalue and offvalue .
self.var = IntVar(root) self.var.set(1) optionsmenu.add_checkbutton(label='Pop Up set to on??', command=self.togglePopUp, variable=self.var, onvalue=1, offvalue=0)
Please note that IntVar, which you should use as a variable for standard recording, can replace the variable self.togglePopUp .
source share