def __init__(self,font=QtGui.QFont('Consolas',11) ,parent=None): BaseDocument.__init__(self, font, parent) # 用户操作记录 self.__operateCache = OperateCache() self.operateCache = lambda : self.__operateCache
def setText(self, text=''): BaseDocument.setText(self, text=text) self.totalLevelTextChangedSignal.emit(None)