update AsyncImage example url, closes #4871

This commit is contained in:
dessant 2017-01-02 21:00:06 +02:00
parent 63eefb7ea5
commit 379975558e
1 changed files with 5 additions and 4 deletions

View File

@ -14,9 +14,9 @@ from kivy.lang import Builder
Builder.load_string('''
<CenteredAsyncImage>:
size: self.texture_size
size_hint: None, None
size_hint: 0.8, 0.8
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
mipmap: True
''')
@ -26,8 +26,9 @@ class CenteredAsyncImage(AsyncImage):
class TestAsyncApp(App):
def build(self):
return CenteredAsyncImage(
source='http://kivy.org/funny-pictures-cat-is-expecting-you.jpg')
url = ('https://upload.wikimedia.org/wikipedia/commons/thumb/8/89/'
'STS-116_spacewalk_1.jpg/1024px-STS-116_spacewalk_1.jpg')
return CenteredAsyncImage(source=url)
if __name__ == '__main__':