mirror of https://github.com/kivy/kivy.git
update AsyncImage example url, closes #4871
This commit is contained in:
parent
63eefb7ea5
commit
379975558e
|
@ -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__':
|
||||
|
|
Loading…
Reference in New Issue