Permalink
Find file
11b1e14 Sep 14, 2016
18 lines (12 sloc) 341 Bytes
# -*- coding: utf-8 -*-
import sys
from PyQt4 import QtGui
def show_image(image_path='s_pycharm.jpg'):
app = QtGui.QApplication(sys.argv)
pixmap = QtGui.QPixmap(image_path)
screen = QtGui.QLabel()
screen.setPixmap(pixmap)
screen.showFullScreen()
sys.exit(app.exec_())
if __name__ == '__main__':
show_image()