Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
"""
SPDX-FileCopyrightText: 2017 Eliakin Costa <[email protected]>
SPDX-License-Identifier: GPL-2.0-or-later
"""
try:
from PyQt6.QtWidgets import QWidget, QVBoxLayout, QToolBar
except:
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QToolBar
from . import clearaction, outputtextedit
from builtins import i18n
class OutPutWidget(QWidget):
def __init__(self, scripter, parent=None):
super(OutPutWidget, self).__init__(parent)
self.scripter = scripter
self.setObjectName(i18n('Output'))
self.layout = QVBoxLayout()
self.toolbar = QToolBar()
self.clearAction = clearaction.ClearAction(self.scripter, self)
self.toolbar.addAction(self.clearAction)
self.outputtextedit = outputtextedit.OutPutTextEdit(self.scripter, self)
self.layout.addWidget(self.toolbar)
self.layout.addWidget(self.outputtextedit)
self.setLayout(self.layout)