editor.py 文件源码

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

项目:bubblesub 作者: rr- 项目源码 文件源码
def __init__(self, api, parent=None):
        super().__init__(parent)

        self.text_edit = TextEdit(
            api, 'editor', self,
            tabChangesFocus=True)
        self.note_edit = TextEdit(
            api, 'notes', self,
            tabChangesFocus=True,
            placeholderText='Notes')

        self.text_edit.highlighter = \
            SpellCheckHighlighter(api, self.text_edit.document())

        layout = QtWidgets.QHBoxLayout(self)
        layout.setSpacing(4)
        layout.setContentsMargins(0, 0, 0, 0)
        layout.addWidget(self.text_edit)
        layout.addWidget(self.note_edit)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号