Python Interface mit Hintergrund und Buttons?

1 Antwort

import tkinter as t

def function():

text.delete(0.0, END)

text.insert(END, "Wie geht es dir?")

window = t.Tk()

text = t.Text(window, text="Hallöchen!")

button = t.Button(window, text="Klick mich!", command=function)

button.pack()

text.pack()

window.mainloop()

#Ganz basic Code, aber es bringt ein paar grundlegende Dinge rüber