diff --git a/docs/cookbook.md b/docs/cookbook.md index 5dbc4889..b2036ffc 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -2976,7 +2976,7 @@ while True: ev1, vals1 = win1.Read(timeout=100) if ev1 == sg.WIN_CLOSED: break - win1.['_OUTPUT_'].update(vals1[0]) + win1['_OUTPUT_'].update(vals1[0]) if ev1 == 'Launch 2' and not win2_active: win2_active = True