From 63becef4af15fa3876135438755b5763458ccff7 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 15 Jul 2021 21:33:40 -0700 Subject: [PATCH] bugfix --- kivyblocks/udp_widget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivyblocks/udp_widget.py b/kivyblocks/udp_widget.py index 5688140..28a5de3 100644 --- a/kivyblocks/udp_widget.py +++ b/kivyblocks/udp_widget.py @@ -80,7 +80,7 @@ class UdpWidget(EventDispatcher): return print('received: data=', d) cmd = d['c'] - f = self.inner_handler(cmd) + f = self.inner_handlers.get(cmd) if f: f(d, addr) print('comm_callback():inner callback called(),', cmd)