def __init__(self, parent=None):
super(LogDialog, self).__init__()
self.parent = parent
self.logwindow = QPlainTextEdit(parent=self.parent)
self.logwindow.setReadOnly(True)
self.logwindow.setStyleSheet("QPlainTextEdit {background-color:gray}")
layout = QVBoxLayout(self)
layout.addWidget(self.logwindow)
self.setWindowIcon(get_icon("log_file.png"))
self.setWindowTitle("Log record")
评论列表
文章目录