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)
评论列表
文章目录