Advertisement
here2share

# Tk_dif_btns_demo.py

May 29th, 2015
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. # Tk_dif_btns_demo.py
  2.  
  3. import Tkinter
  4. root=Tkinter.Tk()
  5. btn1=Tkinter.Button(root,anchor=Tkinter.E,height=5,width=40,text='BUTTON 1')
  6. btn1.pack()
  7. btn2=Tkinter.Button(root,text='BUTTON 2',bg='blue')
  8. btn2.pack()
  9. btn3=Tkinter.Button(root,text='BUTTON 3',fg='red')
  10. btn3.pack()
  11. btn4=Tkinter.Button(root,text='BUTTON 4',state=Tkinter.DISABLED)
  12. btn4.pack()
  13.  
  14. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement