tkinter Radiobuttons not displaying value in class tkinter Radiobuttons not displaying value in class tkinter tkinter

tkinter Radiobuttons not displaying value in class


The explanation is quite simple, there is two instances of Tk() created because of inheritance. Now you have to specify which instance the IntVar() should belong to, because it always sets itself to the first created instance(win), but here you don't want that. So:

class dialogWindow(test):    def __init__(self):        super().__init__()                self.rc=tk.IntVar(self)        .....