pep8 fixes

* corrected some E501 errors

* corrected some more pep8errors
This commit is contained in:
Susmit 2016-12-18 13:29:35 +05:30 committed by dessant
parent 579c0527fa
commit 34168e5d0d
4 changed files with 10 additions and 10 deletions

View File

@ -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, _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 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 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, the season of Darkness, it was the spring of hope, it was the winter of
we had everything before us, we had nothing before us, we were all going despair,we had everything before us, we had nothing before us, we were all
direct to Heaven, we were all going direct the other way - in short, 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 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 authorities insisted on its being received, for good or for evil, in the
superlative degree of comparison only. superlative degree of comparison only.
@ -37,7 +37,8 @@ BoxLayout:
text: 'These modify all demonstration Labels' text: 'These modify all demonstration Labels'
StackLayout: 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: Button:
text: 'Reset' text: 'Reset'

View File

@ -45,6 +45,5 @@ class LabelTextSizeTest(App):
return z return z
if __name__ == '__main__': if __name__ == '__main__':
LabelTextSizeTest().run() LabelTextSizeTest().run()

View File

@ -69,8 +69,8 @@ what
Definition lists associate a term with a definition. Definition lists associate a term with a definition.
how how
The term is a one-line phrase, and the definition is one or more paragraphs or The term is a one-line phrase, and the definition is one or more paragraphs
body elements, indented relative to the term. Blank lines are not allowed or body elements, indented relative to the term. Blank lines are not allowed
between term and definition. between term and definition.

View File

@ -16,9 +16,9 @@ class ScrollViewApp(App):
size_hint=(None, None), width=500) size_hint=(None, None), width=500)
# when we add children to the grid layout, its size doesn't change at # 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 # all. we need to ensure that the height will be the minimum required
# contain all the childs. (otherwise, we'll child outside the bounding # to contain all the childs. (otherwise, we'll child outside the
# box of the childs) # bounding box of the childs)
layout.bind(minimum_height=layout.setter('height')) layout.bind(minimum_height=layout.setter('height'))
# add button into that grid # add button into that grid