Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_dif_btns_demo.py
- import Tkinter
- root=Tkinter.Tk()
- btn1=Tkinter.Button(root,anchor=Tkinter.E,height=5,width=40,text='BUTTON 1')
- btn1.pack()
- btn2=Tkinter.Button(root,text='BUTTON 2',bg='blue')
- btn2.pack()
- btn3=Tkinter.Button(root,text='BUTTON 3',fg='red')
- btn3.pack()
- btn4=Tkinter.Button(root,text='BUTTON 4',state=Tkinter.DISABLED)
- btn4.pack()
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement