Skip to content

Commit 39bf1bb

Browse files
Toddpeircej
authored andcommitted
BF: Blank textbox should be blank, not None
1 parent 1ac66f0 commit 39bf1bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psychopy/visual/textbox2/textbox2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def __init__(self, win, text, font,
207207
'fillRGB': self.box.fillRGB
208208
}
209209
# then layout the text (setting text triggers _layout())
210-
self.text = text
210+
self.text = text if text is not None else ""
211211

212212
# caret
213213
self.editable = editable

0 commit comments

Comments
 (0)