Advertisement
timber101

tictactoe

Aug 12th, 2019
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1. from guizero import App, PushButton
  2.  
  3.  
  4.  
  5.  
  6. app = App(title="Tic Tac Toe",layout="grid",height=200,width=200)
  7.  
  8. tl = PushButton(app,text=" ",grid=[0,0],width = 5,height=2)
  9. tm = PushButton(app,text=" ",grid=[0,1],width = 5,height=2)
  10. tr = PushButton(app,text=" ",grid=[0,2],width = 5,height=2)
  11. ml = PushButton(app,text=" ",grid=[1,0],width = 5,height=2)
  12. mm = PushButton(app,text=" ",grid=[1,1],width = 5,height=2)
  13. mr = PushButton(app,text=" ",grid=[1,2],width = 5,height=2)
  14. bl = PushButton(app,text=" ",grid=[2,0],width = 5,height=2)
  15. bm = PushButton(app,text=" ",grid=[2,1],width = 5,height=2)
  16. br = PushButton(app,text=" ",grid=[2,2],width = 5,height=2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement