Update sandbox.py

This commit is contained in:
BrotherBoard 2024-05-17 08:42:19 +03:00 committed by GitHub
parent 4b6169dc1b
commit 57cdced2e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5344,7 +5344,8 @@ class TexturePicker(popup.PopupWindow):
def ok(s, index): def ok(s, index):
global THE_TB global THE_TB
bui.containerwidget(edit=s.root_widget, transition=anim_out) bui.containerwidget(edit=s.root_widget, transition=anim_out)
bui.textwidget(edit=THE_TB, text=all_texture[index]) try: bui.textwidget(edit=THE_TB, text=all_texture[index])
except TypeError: pass # NoneType
def on_popup_cancel(s) -> None: def on_popup_cancel(s) -> None:
bui.getsound('swish').play() bui.getsound('swish').play()