From 8f8ab19f474b76a3b8900b0eed996d676ef40284 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 9 Aug 2020 21:34:13 +0800 Subject: [PATCH] bugfix --- kivyblocks/blocks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kivyblocks/blocks.py b/kivyblocks/blocks.py index 4fab4c7..9b92333 100755 --- a/kivyblocks/blocks.py +++ b/kivyblocks/blocks.py @@ -121,6 +121,9 @@ class Blocks(EventDispatcher): self.register_event_type('on_built') self.register_event_type('on_failed') self.env = GlobalEnv() + + def set(self,k,v): + self.env[k] = v def register_widget(self,name,widget): globals()[name] = widget