ich habe folgenden source code vom wsspiegel tutorial geholt
und geändert
Code: Alles auswählen
from Tkinter import *
def nachricht():
lab=Label(root,text="Hallo G10b!")
lab.pack()
def nachricht1():
lab.text("Mope")
lab.pack()
root=Tk()
but=Button(root,text="Info",command=nachricht)
but.pack()
but1=Button(root,text="Info1",command=nachricht1)
but1.pack()
root.mainloop()
Edit (Leonidas): Code in Python-Tags gesetzt.