Commit 0a36534 1 parent 5ed1300 commit 0a36534 Copy full SHA for 0a36534
File tree 1 file changed +5
-4
lines changed
docs/examples/python/tutorial_tic_tac_toe
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 7
7
def square (value , on_square_click ):
8
8
return html .button (
9
9
{"className" : "square" , "on_click" : on_square_click },
10
- value or "" ,
10
+ value ,
11
11
)
12
12
13
13
14
14
@component
15
15
def board (x_is_next , squares , on_play ):
16
-
17
16
def handle_click (i ):
18
17
def handle_click_event (_event ):
19
- """Due to a quirk of Python, if your event handler needs args other than
18
+ """
19
+ Due to a quirk of Python, if your event handler needs args other than
20
20
`event`, you will need to create a wrapper function as seen above.
21
- Ref: https://pylint.readthedocs.io/en/stable/user_guide/messages/warning/cell-var-from-loop.html"""
21
+ Ref: https://pylint.readthedocs.io/en/stable/user_guide/messages/warning/cell-var-from-loop.html
22
+ """
22
23
if calculate_winner (squares ) or squares [i ]:
23
24
return
24
25
You can’t perform that action at this time.
0 commit comments