Code: Alles auswählen
from tkinter import*
tk = Tk()
def Button ():
B1 = Button(tk, text="hi")
B1.place(x=50, y= 50)
Button()
B1.place_forget()
Code: Alles auswählen
from tkinter import*
tk = Tk()
B1 = Button()
def Button ():
global B1
B1 = Button(tk, text="hi")
B1.place(x=50, y= 50)
Button()
B1.place_forget()
Gibt es einen Befehl, der ausnahmslos alles aus einem Fenster löscht? So ungefähr tk.clear().
Vielen Dank schonmal im Vorhinein.