设置了一个openimage按钮,实现按下按钮即可显示 img_path 路径的图片。
import sys
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
class QpixmapDemo(QWidget):
def __init__(self, parent=None):
super(QpixmapDemo, self).__init__(parent