From b2b8f252ef3ee8cfc7faa9d17c721b3caf917eb1 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Thu, 1 Nov 2018 15:16:49 -0400 Subject: [PATCH] Allow multiple write only elements --- PySimpleGUI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index d5aa434d..1971b3de 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -3467,7 +3467,7 @@ def BuildResultsForSubform(form, initialize_only, top_level_form): button_pressed_text = top_level_form.LastButtonClicked for row_num, row in enumerate(form.Rows): for col_num, element in enumerate(row): - if element.Key == WRITE_ONLY_KEY: + if element.Key is not None and WRITE_ONLY_KEY in element.Key: continue value = None if element.Type == ELEM_TYPE_COLUMN: