From 8dc41a2957fb6576a23a22b0db99daec4cacad66 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 1 Dec 2020 12:47:18 +0800 Subject: [PATCH] bugfix --- kivyblocks/blocks.py | 2 +- requirements.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kivyblocks/blocks.py b/kivyblocks/blocks.py index f51f28b..13d7b1c 100755 --- a/kivyblocks/blocks.py +++ b/kivyblocks/blocks.py @@ -321,7 +321,7 @@ class Blocks(EventDispatcher): raise e pos = 0 - for sw in desc.get('subwidgets',[]): + for pos,sw in enumerate(desc.get('subwidgets',[])): params={ 'desc':desc, 'widget':widget, diff --git a/requirements.txt b/requirements.txt index 626dffc..7b8dc18 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,5 @@ ffpyplayer qrcode pillow requests +plyer +python-osc