0
나는에서 하나 개의 아이콘을 사용하려고 :파이썬 Qt4 창 아이콘을 설정하는 방법은 무엇입니까?
- https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
- PyQt4 set windows taskbar icon
하지만 창에 표시되지 않습니다
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
import sys
from PyQt4.QtGui import *
# Create an PyQT4 application object.
a = QApplication(sys.argv)
# The QWidget widget is the base class of all user interface objects in PyQt4.
w = QWidget()
# Set window size.
w.resize(820, 240)
# Set window title
w.setWindowTitle("Hello World!")
# https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
undoicon = QIcon.fromTheme("camera-web")
w.setWindowIcon(undoicon)
# Show window
w.show()
sys.exit(a.exec_())
I 오전 윈도우 10과 :
- 아나콘다
conda --version
-> conda 4.3.18
파이썬python --version
->Python 2.7.13 :: Anaconda custom (32-bit)
'호환되는 테마 묶음'이란? – user
저는 잘 모릅니다.하지만 그렇게하지 않았 음은 분명합니다. ;-) – ImportanceOfBeingErnest
질문 https://stackoverflow.com/questions/29392213/what-path-to-enter-in-pyqt-qicon-setthemesearchpaths-in-pyqt-on-win7 도움이 될 것 같습니다. – user