1# This script is licensed CC 0 1.0, so that you can learn from it.
2
3# ------ CC 0 1.0 ---------------
4
5# The person who associated a work with this deed has dedicated the
6# work to the public domain by waiving all of his or her rights to the
7# work worldwide under copyright law, including all related and
8# neighboring rights, to the extent allowed by law.
9
10# You can copy, modify, distribute and perform the work, even for
11# commercial purposes, all without asking permission.
12
13# https://creativecommons.org/publicdomain/zero/1.0/legalcode
14
15from PyQt5.QtWidgets import QDialog
16
17
18class TenScriptsDialog(QDialog):
19
20    def __init__(self, uitenscripts, parent=None):
21        super(TenScriptsDialog, self).__init__(parent)
22
23        self.uitenscripts = uitenscripts
24
25    def accept(self):
26        self.uitenscripts.tenscripts.writeSettings()
27
28        super(TenScriptsDialog, self).accept()
29
30    def closeEvent(self, event):
31        event.accept()
32