codice:
Def funzione:
lblPerimeter.pack()
lblFormulePerimeter.pack()
lblTitleEsemple.pack()
lblEsemple1.pack()
lblArea.pack(pady=10)
lblFormuleArea.pack()
lblTitleEsemple2.pack(pady=20)
lblEsemple2.pack()f3 = Frame(f2, width=275, height=250, bg="red")
f3.grid(row=1, column=0)
f3.grid_propagate(False)
f4 = Frame(f2, width=275, height=250, bg="yellow")
f4.grid(row=1, column=1)
f4.grid_propagate(False)
f5 = Frame(f2, width=275, height=250, bg="white")
f5.grid(row=2, column=0)
f5.grid_propagate(False)
f6 = Frame(f2, width=275, height=250, bg="white")
f6.grid(row=2, column=1)
f6.grid_propagate(False)lblPerimeter= Label(f3, text="Perimetro", font=('arial', 12, 'bold'), fg='black', bg='white')
lblPerimeter.pack_forget()
lblFormulePerimeter = Label(f3, textvariable=txtPerimeter,
font=('times', 12, 'italic'), fg='black', bg='white')
lblFormulePerimeter.pack_forget()
lblTitleEsemple = Label(f3, font=('arial', 12, 'italic'), fg='black', bg='white', text='Esempio', state=DISABLED)
lblTitleEsemple.pack_forget()
lblEsemple1 = Label(f3, textvariable=txtEsemple,
font=('arial', 12), fg='black', bg="white")
lblEsemple1.pack_forget()
lblArea= Label(f5, text="Perimetro", font=('arial', 12, 'bold'), fg='black', bg='white', state=DISABLED)
lblArea.pack_forget()
lblFormuleArea = Label(f5, textvariable=textArea,
font=('times', 12, 'italic'), fg='black', bg='white')
lblFormuleArea.pack_forget()
lblTitleEsemple2 = Label(f5, font=('arial', 12, 'italic'), fg='black', bg='white', text='Esempio', state=DISABLED)
lblTitleEsemple2.pack_forget()
lblEsemple2 = Label(f5, textvariable=txtEsemple2,
font=('arial', 12), fg='black', bg="white")
lblEsemple2.pack_forget()
showCanvas = Canvas(f4, width=275, height=250, bg='white')
showCanvas.pack_forget()funzione()