'PYQT5 I want to exchange text inside Qpushbotton by drag and drop
It's been a week since I started Python, so there's a lot I don't know.
The image doesn't come out. I want to know what's wrong.
I'd like to exchange the text inside the Qpushbotton with drag and drop as shown in the picture.
def retranslateUi(self, Form):
font = QtGui.QFont()
font.setFamily("휴먼엑스포")
font.setPointSize(25)
font2 = QtGui.QFont()
font2.setFamily("휴먼엑스포")
font2.setPointSize(15)
font3 = QtGui.QFont()
font3.setFamily("휴먼엑스포")
font3.setPointSize(14)
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "히정이의 내전 밸런스 매치"))
## 레드 탑
self.label_12.setText(_translate("Form", "\n\n"+topt.get(wl1[5])))
self.label_12.setAlignment(Qt.AlignRight)
self.label_12.setFont(font3)
redt = list(topt.get(wl1[5]))
if "챌" == redt[0]:
self.label_22.setText(_translate("Form", "<html><head/><body><img src=\"img/T/challenger.png\" width=\"80\" height=\"100\"/></body></html>"))
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
