mirror of https://github.com/kivy/kivy.git
pep8 fixes
* corrected some E501 errors * corrected some more pep8errors
This commit is contained in:
parent
579c0527fa
commit
34168e5d0d
|
@ -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'
|
||||
|
|
|
@ -45,6 +45,5 @@ class LabelTextSizeTest(App):
|
|||
return z
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
LabelTextSizeTest().run()
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue