This commit is contained in:
yumoqing 2020-08-09 21:34:13 +08:00
parent 79a8244506
commit 8f8ab19f47

View File

@ -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