Advertisement
k1alo

Крестики-Нолики

Dec 6th, 2023 (edited)
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.08 KB | None | 0 0
  1. from tkinter import *
  2.  
  3. root = Tk()
  4. root.title("poe-pie")
  5. root.geometry("350x400")
  6.  
  7. title = Label(text="Крестики-нолики", font=('Arial', 14, "bold"))
  8. title.pack()
  9.  
  10. title1 = Label(text="Ходят: ", pady=10, font=('Arial', 13))
  11. title1.pack()
  12.  
  13. button_x1_y1 = Button(text=" ")
  14. button_x1_y1.grid(row=1, column=1, pady=100, padx=150)
  15.  
  16. button_x1_y2 = Button(text=" ")
  17. button_x1_y2.grid(row=1, column=2, pady=110, padx=150)
  18.  
  19. button_x1_y3 = Button(text=" ")
  20. button_x1_y3.grid(row=1, column=3, pady=120, padx=150)
  21.  
  22. button_x2_y1 = Button(text=" ")
  23. button_x2_y1.grid(row=2, column=1, pady=100, padx=160)
  24.  
  25. button_x2_y2 = Button(text=" ")
  26. button_x2_y2.grid(row=2, column=2, pady=110, padx=160)
  27.  
  28. button_x2_y3 = Button(text=" ")
  29. button_x2_y3.grid(row=2, column=3, pady=120, padx=160)
  30.  
  31. button_x3_y1 = Button(text=" ")
  32. button_x3_y1.grid(row=3, column=1, pady=100, padx=170)
  33.  
  34. button_x3_y2 = Button(text=" ")
  35. button_x3_y2.grid(row=3, column=2, pady=110, padx=170)
  36.  
  37. button_x3_y3 = Button(text=" ")
  38. button_x3_y3.grid(row=3, column=3, pady=120, padx=170)
  39.  
  40.  
  41.  
  42.  
  43. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement