Wie kann ich Text in ein Text-Element einfügen? "textbox.insert(END,'hallo') ist mir bekannt, funktioniert aber nicht *heul*
Code: Alles auswählen
import Tkinter as tk
def test():
output.insert(END, 'hallo')
root = tk.Frame(width=60, height=80)
output = tk.Text(root, width=60, height=20)
button = tk.Button(root, text="bla", command=test)
root.pack()
output.pack()
button.pack()
root.mainloop()
gruß