How to display an image in Python. Using PyQt5 application window.
Source code viewer
#import os #from PyQt5.QtGui import QPixmap #from PyQt5.QtWidgets import QLabel label = QLabel(window) pixmap = QPixmap(os.getcwd() + '/test.jpg') label.setPixmap(pixmap)Programming Language: Python