Python programozás - Szoftverfejlesztés fórum

üzenetek

hozzászólások


tvamos
(nagyúr)
Blog

Sziasztok!
Miert van az, hogy ha a "command = abl1.destroy", akkor megy, igy meg nem:
def destroy_window () :
abl1.destroy
abl1 = Tk()
tex1 = Label(abl1, text='Tk test', fg='red')
tex1.pack()
gomb3 = Button ( abl1, text='End', command = destroy_window() )
gomb3.pack()
abl1.mainloop()

üzenetek