Label and Button Widget Demo : Button : Tkinker PYTHON TUTORIALS


PYTHON TUTORIALS » Tkinker » Button »

 

Label and Button Widget Demo


Label and Button Widget Demo
import Tkinter
top = Tkinter.Tk()

hello = Tkinter.Label(top, text='Hello World!')
hello.pack()

quit = Tkinter.Button(top, text='QUIT',command=top.quit, bg='red', fg='white')
quit.pack(fill=Tkinter.X, expand=1)

Tkinter.mainloop()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Tkinker
» Button