From 3dcc395d652f8d172d81bfd1e2478c39857237a2 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 14 Jul 2020 22:10:04 +0800 Subject: [PATCH] bugfix --- kivyblocks/boxViewer.py | 5 +---- kivyblocks/color_definitions.py | 2 +- kivyblocks/vplayer.py | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/kivyblocks/boxViewer.py b/kivyblocks/boxViewer.py index f07434b..924dedd 100644 --- a/kivyblocks/boxViewer.py +++ b/kivyblocks/boxViewer.py @@ -79,11 +79,9 @@ class BoxViewer(BoxLayout): if dir == 'up': recs.reverse() idx = -1 - print('addPageWidgets(),begin') for r in recs: self.showObject(widgets, r, index=idx) - print('addPageWidgets(),widgets=',len(widgets)) self.dataloader.bufferObjects(widgets) x = self.dataloader.getLocater() self.locater(x) @@ -93,7 +91,7 @@ class BoxViewer(BoxLayout): self.viewContainer.remove_widget(w) def on_selected(self, o, v=None): - print('BoxViewer(): on_selected fired....') + pass def locater(self, pos): self.viewContainer.scroll_y = pos @@ -113,7 +111,6 @@ class BoxViewer(BoxLayout): def showObject(self, holders, rec,index=0): def doit(self,holders,idx,o,w): - print('showObject()...doit(),w=',w,o) w.bind(on_press=self.select_record) self.viewContainer.add_widget(w,index=idx) holders.append(w) diff --git a/kivyblocks/color_definitions.py b/kivyblocks/color_definitions.py index 9ef46cc..99a7aab 100644 --- a/kivyblocks/color_definitions.py +++ b/kivyblocks/color_definitions.py @@ -382,7 +382,7 @@ def getTextColor(bgcolor,type='normal'): def getColors(level=0,selected=False): style = getConfigStyle() i = level % 8 - Logger.info('TEST : style=%s,level=%d', style, level) + # Logger.info('TEST : style=%s,level=%d', style, level) bg_color = colors[style][ level_bg_colors[i]] if selected: k = level_bg_colors[i] diff --git a/kivyblocks/vplayer.py b/kivyblocks/vplayer.py index 7b5e45c..f74dea8 100644 --- a/kivyblocks/vplayer.py +++ b/kivyblocks/vplayer.py @@ -133,7 +133,6 @@ class BaseVPlayer(FloatLayout): def on_fullscreen(self, instance, value): window = self.get_parent_window() - print('window.size=',window.size,'Window size=',Window.size) if not window: Logger.warning('VideoPlayer: Cannot switch to fullscreen, ' 'window not found.')