"""
SPDX-FileCopyrightText: 2017 Eliakin Costa <eliakim170@gmail.com>

SPDX-License-Identifier: GPL-2.0-or-later
"""
try:
    from PyQt6.QtWidgets import QPlainTextEdit
except:
    from PyQt5.QtWidgets import QPlainTextEdit


class OutPutTextEdit(QPlainTextEdit):

    def __init__(self, scripter, toolbar, parent=None):
        super(OutPutTextEdit, self).__init__(parent)

        self.setObjectName('OutPutTextEdit')
        self.setReadOnly(True)
        doc = self.document()
        font = doc.defaultFont()
        font.setFamily('Monospace')
        doc.setDefaultFont(font)
