отрезок кода:
from tkinter import * window =Tk() window.geometry('800x600') window.resizable(width=0, height=0) window.title("ddd") spinbox1= Spinbox(from_=1, to=2) def start1(): n=int(spinbox1.get()) if n==1: label19=Label(text="Тощина") label20=Label(text="Тепло") label19.place(relx=.65,rely=.05) label20.place(relx=.8,rely=.05) entry1_1= Entry() entry1_1.place(relx=.65,rely=.09) entry1_2= Entry() entry1_2.place(relx=.82,rely=.09) if n==2: label19=Label(text="Тощина ") label20=Label(text="Тепло") label19.place(relx=.65,rely=.05) label20.place(relx=.8,rely=.05) entry1_1= Entry() entry1_1.place(relx=.65,rely=.09) entry1_2= Entry() entry1_2.place(relx=.82,rely=.09) entry2_1= Entry() entry2_1.place(relx=.65,rely=.14) entry2_2= Entry() entry2_2.place(relx=.82,rely=.14) spinbox1.pack() button=Button(command=start1) button.pack() window.mainloop