티스토리 뷰
QWebView setup.py py2exe PyQt4 이미지 loading images failed, eclipse python
devlinker 2017. 3. 31. 10:32Eclipse Python PyQt4 py2exe를 이용하여 Gui 프로그램을 작성하다 발견..
개발중에 바로 실행하면 모든 이미지가 잘 나온다..
그런데 py2exe로 wrapping 해서 실행하면 아래와 같이 깨짐..
setup.py data_files항목에 아래를 추가하면 정상 표출된다. (결국 dll이 동작안해서 그렇다. 기본적으로 png는 지원된다.)
('imageformats', ['C:\Python27\Lib\site-packages\PyQt4\plugins\imageformats\qgif4.dll']),
('imageformats', ['C:\Python27\Lib\site-packages\PyQt4\plugins\imageformats\qico4.dll']),
('imageformats', ['C:\Python27\Lib\site-packages\PyQt4\plugins\imageformats\qjpeg4.dll']),
('imageformats', ['C:\Python27\Lib\site-packages\PyQt4\plugins\imageformats\qmng4.dll']),
('imageformats', ['C:\Python27\Lib\site-packages\PyQt4\plugins\imageformats\qsvg4.dll']),
('imageformats', ['C:\Python27\Lib\site-packages\PyQt4\plugins\imageformats\qtga4.dll']),
('imageformats', ['C:\Python27\Lib\site-packages\PyQt4\plugins\imageformats\qtiff4.dll']),
'Python > Tutorials & examples' 카테고리의 다른 글
파이썬 마우스 클릭 함수 (1) | 2017.04.21 |
---|---|
Python Web Framework (0) | 2017.04.19 |
- Total
- Today
- Yesterday
- 온라인저지
- 파이썬
- 타임스탬프
- websocket
- 관련사이트
- 리눅스
- 디지털서명
- PyQt
- qwebview
- 소프트웨어대회
- WSS
- 프로그래밍대회
- stamp
- 파이썬프레임워크
- 프로젝트관리전문가
- 안드로이드 화면 밝기 조절
- IT-PMP
- 명령어
- 더불어 민주당
- Python
- SW대회
- 사용법
- Android
- setup.py
- .svn
- 코드스쿨
- signtool
- ORACLE 프로시져생성
- 자유한국당
- 서버주소
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |