def initUI(self):
"""
initUI()
"""
vbox = QVBoxLayout(self)
grid1 = QGridLayout()
grid1.setSpacing(10)
self.text = QTextBrowser()
self.text.setReadOnly(True)
self.text.setOpenExternalLinks(True)
self.text.append(self.message)
self.text.moveCursor(QTextCursor.Start)
self.text.ensureCursorVisible()
vbox.addWidget(self.text)
self.setLayout(vbox)
self.setMinimumSize(550, 450)
self.resize(550, 600)
self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint)
self.setWindowTitle(self.title)
iconWT = QIcon()
iconWT.addPixmap(QPixmap(":images/DXF2GCODE-001.ico"),
QIcon.Normal, QIcon.Off)
self.setWindowIcon(QIcon(iconWT))
self.exec_()
评论列表
文章目录