From 6ce9313f22082690018bd0a7d303b7c894b5a0c7 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 14 Jul 2021 15:30:15 +0800 Subject: [PATCH] bugfix --- kivyblocks/newvideo.py | 4 ---- kivyblocks/tree.py | 12 +----------- kivyblocks/widgetExt/inputext.py | 1 - 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/kivyblocks/newvideo.py b/kivyblocks/newvideo.py index a465bbf..3d5a101 100644 --- a/kivyblocks/newvideo.py +++ b/kivyblocks/newvideo.py @@ -61,13 +61,11 @@ class NewVideo(Video): self.height = self.width * v_size[1] / v_size[0] def on_load_success(self, *args): - Logger.info('NewVideo: pn_load_success fired, %s', args) pass def record_start_time(self, *args): self.start_time = time.time() self.load_status = 'start' - Logger.info('NewVideo: record_start_time() called %s',self.load_status) def on_open_failed(self, source, x=None): Logger.error(f'NewVideo: source={self.source} open failed') @@ -110,8 +108,6 @@ class NewVideo(Video): Logger.error('NewVideo: _video has not _ffplayer, do nothong') def on_video_loaded(self, *args): - Logger.info('NewVideo: status=%s, load_status=%s', self.state, - self.load_status) if self.load_status == 'start': self.load_status = 'success' t = time.time() diff --git a/kivyblocks/tree.py b/kivyblocks/tree.py index 93abb21..b72b186 100644 --- a/kivyblocks/tree.py +++ b/kivyblocks/tree.py @@ -168,9 +168,6 @@ class TreeNode(BoxLayout): self.node_box.height = self.treeObj.rowheight self.node_box.width = self.trigger.width + \ self.content.width - Logger.info('Tree : content=(%d,%d),box=(%d,%d)', \ - self.content.width,self.content.height, - self.node_box.width,self.node_box.height) def buildChildren(self): if self.initChildren == True: @@ -374,7 +371,6 @@ class Tree(WidgetCSS, ScrollWidget): def unselect_row(self): if self.selected_node: - Logger.info('selected node unselected') self.selected_node.unselected() self.selected_node = None @@ -396,14 +392,12 @@ class Tree(WidgetCSS, ScrollWidget): config = getConfig() app = App.get_running_app() url = app.absurl(self.url) - Logger.info('Tree: getUrlData(),url=%s',url) hc.get(url,params=params, callback=self.dataLoaded, errback=self.showError) def showError(self,o,e): traceback.print_exc() - Logger.info('Tree: showError() o=%s,e=%s',o,e) alert(e,title='error') def on_data(self, *largs): @@ -422,7 +416,6 @@ class Tree(WidgetCSS, ScrollWidget): self.data = d def addNodes(self): - Logger.info("Tree: addNodes()") for c in self.data: self.addNode(c) @@ -468,7 +461,6 @@ class TextTreeNode(TreeNode): return def onPress(self,o,v=None): - Logger.info('select the leaf node') self.treeObj.select_row(self) def selected(self): @@ -526,8 +518,6 @@ class MenuTreeNode(TextTreeNode): self.content.add_widget(textw) self.text_widget = textw self.content.bind(on_press=self.onPress) - print('****',self.content,'w,y=',self.content.width, - self.content.height, 'tree width=', self.treeObj.width) return @@ -618,7 +608,7 @@ class PopupMenu(BoxLayout): self.register_event_type('on_press') def on_press(self,o,v=None): - Logger.info('PopupMenu: on_press fired') + pass def onMenuItemTouch(self,o,d=None,v=None): data = { diff --git a/kivyblocks/widgetExt/inputext.py b/kivyblocks/widgetExt/inputext.py index 37ec510..ddedb73 100755 --- a/kivyblocks/widgetExt/inputext.py +++ b/kivyblocks/widgetExt/inputext.py @@ -69,7 +69,6 @@ class StrInput(TextInput): a['size_hint_y'] = None a['height'] = CSize(h) - Logger.info('StrInput:a=%s,kv=%s',a,kv) super(StrInput, self).__init__(**a) self.old_value = None self.register_event_type('on_changed')