mirror of https://github.com/kivy/kivy.git
doc: examples made pep8
This commit is contained in:
parent
7f87a5bf5b
commit
4bf14ac497
|
@ -603,6 +603,7 @@ Then, when we put this snippet into a Kivy app::
|
||||||
class RootWidget(FloatLayout):
|
class RootWidget(FloatLayout):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class MainApp(App):
|
class MainApp(App):
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
|
@ -667,16 +668,19 @@ We use this to display an animated background::
|
||||||
halign: 'justify'
|
halign: 'justify'
|
||||||
''')
|
''')
|
||||||
|
|
||||||
|
|
||||||
class CustomLayout(GridLayout):
|
class CustomLayout(GridLayout):
|
||||||
|
|
||||||
background_image = ObjectProperty(
|
background_image = ObjectProperty(
|
||||||
Image(
|
Image(
|
||||||
source='../examples/widgets/sequenced_images/data/images/button_white_animated.zip',
|
source='../examples/widgets/sequenced_images/data/images/button_white_animated.zip',
|
||||||
anim_delay=.1))
|
anim_delay=.1))
|
||||||
|
|
||||||
|
|
||||||
class RootWidget(FloatLayout):
|
class RootWidget(FloatLayout):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class MainApp(App):
|
class MainApp(App):
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
|
|
Loading…
Reference in New Issue