Advertisement
here2share

# Tk_button_grid_layout_borderwidth_of_3.py

Jun 16th, 2015
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. # Tk_button_grid_layout_borderwidth_of_3.py
  2.  
  3. from Tkinter import *
  4.  
  5. root = Tk()
  6.  
  7. Button(root, text='R1-C1', borderwidth=3).grid(row=1, column=1)
  8. Button(root, text='R1-C2', borderwidth=3).grid(row=1, column=2)
  9. Button(root, text='R2-C3', borderwidth=3).grid(row=2, column=3)
  10. Button(root, text='R2-C4', borderwidth=3).grid(row=2, column=4)
  11. Button(root, text='R3-C3', borderwidth=3).grid(row=3, column=3)
  12. Button(root, text='R4-C1', borderwidth=3).grid(row=4, column=1)
  13.  
  14. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement