파이썬[Python]: kivy - AsyncImage 클래스
kivy.uix.image 모듈 - AsyncImage 클래스(class)
/// 설명
비동기식으로 이미지를 불러옵니다.
참고: uix 모듈 목록
※ 형식
AsyncImage(**kwargs)
reference
https://kivy.org/doc/stable/api-kivy.uix.image.html
참고: uix 모듈 목록
※ 형식
AsyncImage(**kwargs)
reference
https://kivy.org/doc/stable/api-kivy.uix.image.html
/// 예제
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import kivy kivy.require('2.0.0') from kivy.app import App from kivy.core.window import Window from kivy.uix.image import AsyncImage Window.clearcolor = (.5, .5, 1, .1) class TestApp(App): def build(self): # using AsyncImage img = AsyncImage( source='https://blogger.googleusercontent.com/img/a/AVvXsEg3YOaSiaRVShfHi57wOx1z5nqzZ27UjGNG0QWhHH4ER0DBwYdQsu9WHsgRcO6OEJeXkB_6eSAa1mtXcougYhcdZLPZfbdZFRVN7cFd3D0Kjh-d88JI3VHrY71VycaFhYKPf8Fr4N37azhWGpLIfZn78ModucweukNMybw0dxlzIJOz4bcyGyNZ_jA4=s200') return img TestApp().run() | cs |
/// 출력
* 실행환경: Microsoft Windows 10 Homes
* 인터프리터: 파이썬(Python 3.9)
– 당신을 응원합니다. –
댓글
댓글 쓰기