From 09fa8f2a3e207806a1b2ecac6a57df1041a6f524 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 27 Mar 2021 16:00:11 +0800 Subject: [PATCH] bugfix --- kivyblocks/boxViewer.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/kivyblocks/boxViewer.py b/kivyblocks/boxViewer.py index 0126850..48b8619 100644 --- a/kivyblocks/boxViewer.py +++ b/kivyblocks/boxViewer.py @@ -189,15 +189,9 @@ class BoxViewer(WidgetReady, BoxLayout): self.dataloader.loadPreviousPage() def select_record(self,o,v=None): - print('BoxViewer(),on_selected() called\n', - 'normal_bgcolor=',o.normal_bgcolor,'\n', - 'selected_bgcolor=',o.selected_bgcolor,'\n', - 'bg_color=',o.bgcolor,'\n', - 'color_level=',self.color_level) - for w in self.subwidgets: - w.unselected() - o.selected() + w.box_actived = False + o.box_actived = True self.selected_data = o.getValue() self.dispatch('on_selected',self.selected_data)