highlighter.py 文件源码

python
阅读 34 收藏 0 点赞 0 评论 0

项目:notepad 作者: lfsando 项目源码 文件源码
def init_ui(self):

        background_color = QColor()
        background_color.setNamedColor('#282821')

        color_palette = self.text_editor.palette()
        color_palette.setColor(QPalette.Text, Qt.white)
        color_palette.setColor(QPalette.Base, background_color)
        self.text_editor.setPalette(color_palette)

        default_font = self.text_editor.font()
        default_font.setPointSize(9)
        self.text_editor.setFont(default_font)

        self.setWindowTitle('Example')
        self.setCentralWidget(self.text_editor)
        self.setGeometry(500, 500, 500, 500)

        self.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号