def help_dialog(self):
self.helpDialog = QDialog()
self.helpDialog.setObjectName("self.helpDialog")
self.helpDialog.setWindowModality(Qt.ApplicationModal)
self.helpDialog.setFixedSize(362, 151)
icon = QIcon()
icon.addPixmap(QPixmap("../resource/logo.png"), QIcon.Normal, QIcon.Off)
self.helpDialog.setWindowIcon(icon)
self.helpDialog.setLayoutDirection(Qt.LeftToRight)
self.helpDialog.setAutoFillBackground(False)
self.helpDialog.setSizeGripEnabled(False)
self.helpDialog.setModal(False)
self.docButton = QPushButton(self.helpDialog)
self.docButton.setGeometry(QRect(200, 100, 111, 41))
icon1 = QIcon()
icon1.addPixmap(QPixmap("../resource/Doc.png"), QIcon.Normal, QIcon.Off)
self.docButton.setIcon(icon1)
self.docButton.setObjectName("docButton")
self.tubeButton = QPushButton(self.helpDialog)
self.tubeButton.setGeometry(QRect(50, 100, 111, 41))
icon2 = QIcon()
icon2.addPixmap(QPixmap("../resource/YouTube.png"), QIcon.Normal, QIcon.Off)
self.tubeButton.setIcon(icon2)
self.tubeButton.setObjectName("tubeButton")
self.label = QLabel(self.helpDialog)
self.label.setGeometry(QRect(20, 10, 331, 21))
font = QFont()
font.setPointSize(12)
self.label.setFont(font)
self.label.setObjectName("label")
self.label_2 = QLabel(self.helpDialog)
self.label_2.setGeometry(QRect(20, 30, 321, 21))
font = QFont()
font.setPointSize(12)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.label_3 = QLabel(self.helpDialog)
self.label_3.setGeometry(QRect(20, 50, 321, 20))
font = QFont()
font.setPointSize(12)
self.label_3.setFont(font)
self.label_3.setObjectName("label_3")
self.label_4 = QLabel(self.helpDialog)
self.label_4.setGeometry(QRect(30, 80, 211, 17))
font = QFont()
font.setPointSize(8)
font.setItalic(True)
self.label_4.setFont(font)
self.label_4.setObjectName("label_4")
self.retranslate_help_ui(self.helpDialog)
QMetaObject.connectSlotsByName(self.helpDialog)
self.docButton.clicked.connect(self.open_github)
self.helpDialog.exec_()
#help_dialog calls this inturn to set some labels messages
评论列表
文章目录