Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guizero import App, PushButton
- app = App(title="Tic Tac Toe",layout="grid",height=200,width=200)
- tl = PushButton(app,text=" ",grid=[0,0],width = 5,height=2)
- tm = PushButton(app,text=" ",grid=[0,1],width = 5,height=2)
- tr = PushButton(app,text=" ",grid=[0,2],width = 5,height=2)
- ml = PushButton(app,text=" ",grid=[1,0],width = 5,height=2)
- mm = PushButton(app,text=" ",grid=[1,1],width = 5,height=2)
- mr = PushButton(app,text=" ",grid=[1,2],width = 5,height=2)
- bl = PushButton(app,text=" ",grid=[2,0],width = 5,height=2)
- bm = PushButton(app,text=" ",grid=[2,1],width = 5,height=2)
- br = PushButton(app,text=" ",grid=[2,2],width = 5,height=2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement