From c00589e5bec1b5259d72d683f9986e99690bf666 Mon Sep 17 00:00:00 2001 From: "gabriel.pettier" Date: Wed, 21 Mar 2012 23:41:19 +0100 Subject: [PATCH] =?UTF-8?q?pep8=C2=A0fixes=20(lines=20too=20long)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kivy/modules/inspector.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kivy/modules/inspector.py b/kivy/modules/inspector.py index 9914f267f..02d408621 100644 --- a/kivy/modules/inspector.py +++ b/kivy/modules/inspector.py @@ -133,7 +133,8 @@ Builder.load_string(''' size_hint_x: None Label: id: ltext - text: [repr(getattr(root.widget, root.key)), root.refresh][0] if root.widget else '' + text: [repr(getattr(root.widget, root.key)), root.refresh][0]\ + if root.widget else '' text_size: (self.width, None) ''') @@ -318,7 +319,8 @@ class Inspector(FloatLayout): text = '%s' % key node = TreeViewProperty(text=text, key=key, widget_ref=wk_widget) node.bind(is_selected=self.show_property) - widget.bind(**{key: partial(self.update_node_content, weakref.ref(node))}) + widget.bind(**{key: partial( + self.update_node_content, weakref.ref(node))}) treeview.add_node(node) def update_node_content(self, node, *l):