From 34168e5d0d50d15e246fdb6c0d8d6242bf98df49 Mon Sep 17 00:00:00 2001 From: Susmit Date: Sun, 18 Dec 2016 13:29:35 +0530 Subject: [PATCH] pep8 fixes * corrected some E501 errors * corrected some more pep8errors --- examples/widgets/label_sizing.py | 9 +++++---- examples/widgets/label_text_size.py | 1 - examples/widgets/rstexample.py | 4 ++-- examples/widgets/scrollview.py | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/widgets/label_sizing.py b/examples/widgets/label_sizing.py index 5ebf70fc5..21aeb6ac7 100644 --- a/examples/widgets/label_sizing.py +++ b/examples/widgets/label_sizing.py @@ -18,9 +18,9 @@ _example_title_text = 'A Tale of Two Cities, by Charles Dickens\n' _example_text = """It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was -the season of Darkness, it was the spring of hope, it was the winter of despair, -we had everything before us, we had nothing before us, we were all going -direct to Heaven, we were all going direct the other way - in short, +the season of Darkness, it was the spring of hope, it was the winter of +despair,we had everything before us, we had nothing before us, we were all +going direct to Heaven, we were all going direct the other way - in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only. @@ -37,7 +37,8 @@ BoxLayout: text: 'These modify all demonstration Labels' StackLayout: - # Button is a subclass of Label and can be sized to text in the same way + # Button is a subclass of Label and can be sized + # to text in the same way Button: text: 'Reset' diff --git a/examples/widgets/label_text_size.py b/examples/widgets/label_text_size.py index fdab75f19..71a91f455 100644 --- a/examples/widgets/label_text_size.py +++ b/examples/widgets/label_text_size.py @@ -45,6 +45,5 @@ class LabelTextSizeTest(App): return z - if __name__ == '__main__': LabelTextSizeTest().run() diff --git a/examples/widgets/rstexample.py b/examples/widgets/rstexample.py index de54b2dae..c3b211aa4 100644 --- a/examples/widgets/rstexample.py +++ b/examples/widgets/rstexample.py @@ -69,8 +69,8 @@ what Definition lists associate a term with a definition. how - The term is a one-line phrase, and the definition is one or more paragraphs or - body elements, indented relative to the term. Blank lines are not allowed + The term is a one-line phrase, and the definition is one or more paragraphs + or body elements, indented relative to the term. Blank lines are not allowed between term and definition. diff --git a/examples/widgets/scrollview.py b/examples/widgets/scrollview.py index 9fabddd0c..8564a0a95 100644 --- a/examples/widgets/scrollview.py +++ b/examples/widgets/scrollview.py @@ -16,9 +16,9 @@ class ScrollViewApp(App): size_hint=(None, None), width=500) # when we add children to the grid layout, its size doesn't change at - # all. we need to ensure that the height will be the minimum required to - # contain all the childs. (otherwise, we'll child outside the bounding - # box of the childs) + # all. we need to ensure that the height will be the minimum required + # to contain all the childs. (otherwise, we'll child outside the + # bounding box of the childs) layout.bind(minimum_height=layout.setter('height')) # add button into that grid