def __init__(self, parent):
super().__init__()
self.widget = QW.QPlainTextEdit(parent)
self.widget.setReadOnly(True)
self.bgcolor = "#aabbcc"
self.widget.setStyleSheet("background-color: %s" % self.bgcolor)
self.widget.setStyleSheet("""* {
selection-background-color: #5964FF;
background-color: %s
}""" % self.bgcolor);
评论列表
文章目录