как присвоить картинку jpg по кнопке
имеется вот такой код:
import sys
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from try5 import *
from PyQt5.QtGui import QPixmap
class MyWin(QtWidgets.QMainWindow):
def __init__(self, parent=None):
QtWidgets.QWidget.__init__(self, parent)
self.ui = Ui_QMainWindow()
self.ui.setupUi(self)
self.ui.exit.clicked.connect(app.quit)
self.ui.d.clicked.connect(self.d_clicked)
self.ui.ha.clicked.connect(self.ha_clicked)
self.ui.hf.clicked.connect(self.hf_clicked)
self.ui.da.clicked.connect(self.da_clicked)
self.ui.df.clicked.connect(self.df_clicked)
self.ui.cliim.clicked.connect(self.cliim_clicked)
def d_clicked(self):
m=float(self.ui.Mimport.text())
z=float(self.ui.Zimport.text())
result=m*z
self.ui.lineEdit.setText(str(result))
def ha_clicked(self):
m=float(self.ui.Mimport.text())
self.ui.lineEdit_2.setText(str(m))
def hf_clicked(self):
m = float(self.ui.Mimport.text())
res=1.25*m
self.ui.lineEdit_3.setText(str(res))
def da_clicked(self):
m = float(self.ui.Mimport.text())
z = float(self.ui.Zimport.text())
resul=m*z+2.5*m
self.ui.lineEdit_4.setText(str(resul))
def df_clicked(self):
m = float(self.ui.Mimport.text())
z = float(self.ui.Zimport.text())
resul = m * z - 2.5 * m
self.ui.lineEdit_5.setText(str(resul))
def cliim_clicked(self):
pixmap=QPixmap("8888.jpg")
image.setPixmap(pixmap)
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
myapp = MyWin()
myapp.show()
sys.exit(app.exec_())