I try to create a GUI in python and need your help. In this GUI, the user should optimize his results through a choice of options. I wrote the following code:
'''----------------frame Discharge calculation-------------------'''
self.discharge = BooleanVar()
self.discharge.set(False)
self.dischargeBut = Checkbutton(frame, text = "calculate discharge", variable = self.discharge)
self.dischargeBut.place(x=600, y=40)
frame3 = Frame(note)
note.add(frame3, text = "Discharge calculation")
self.xButton = 370
self.xText = 250
self.xText2 = 350
self.yAddText = 10
self.yAddText2 = 10
The Problem is that frame3 should only be visible / active when the Checkbox ("calculate discharge") is selected.