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-License-Identifier: CC0-1.0
try:
from PyQt6.QtWidgets import QDialog
except:
from PyQt5.QtWidgets import QDialog
class TenBrushesDialog(QDialog):
def __init__(self, uitenbrushes, parent=None):
super(TenBrushesDialog, self).__init__(parent)
self.uitenbrushes = uitenbrushes
def accept(self):
self.uitenbrushes.tenbrushes.writeSettings()
super(TenBrushesDialog, self).accept()
def closeEvent(self, event):
event.accept()