ScolaSync: Fichier source de src/checkBoxDialog.py

ScolaSync 5.1 |

checkBoxDialog.py
Aller à la documentation de ce fichier.
1 licenceEn="""
2 file checkBoxDialog.py
3 this file is part of the project scolasync
4
5 Copyright (C) 2010 Georges Khaznadar <georgesk@ofset.org>
6
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 """
20
21 from PyQt5.QtCore import *
22 from PyQt5.QtWidgets import *
23
24 import Ui_checkBoxDialog
25
26
28
29 class CheckBoxDialog(QDialog):
30
33
34 def __init__(self,parent = None):
35 QDialog.__init__(self,parent)
36 self.mainWindow=parent
37 self.ui=Ui_checkBoxDialog.Ui_checkBoxDialog()
38 self.ui.setupUi(self)
39 self.ui.allButton.clicked.connect(self.all)
40 self.ui.ToggleButton.clicked.connect(self.toggle)
41 self.ui.NoneButton.clicked.connect(self.none)
42 self.ui.escButton.clicked.connect(self.esc)
43
44
46
47 def all(self):
48 self.mainWindow.checkAllSignal.emit()
49 self.close()
50
51
53
54 def toggle(self):
55 self.mainWindow.checkToggleSignal.emit()
56 self.close()
57
58
60
61 def none(self):
62 self.mainWindow.checkNoneSignal.emit()
63 self.close()
64
65
67
68 def esc(self):
69 self.close()
70
src.checkBoxDialog.CheckBoxDialog.mainWindow
mainWindow
Definition: checkBoxDialog.py:36
QDialog
src.checkBoxDialog.CheckBoxDialog.esc
def esc(self)
termine le dialogue sans rien faire
Definition: checkBoxDialog.py:68
src.checkBoxDialog.CheckBoxDialog
Un dialogue pour gérer les cases à cocher de l'application.
Definition: checkBoxDialog.py:29
src.checkBoxDialog.CheckBoxDialog.toggle
def toggle(self)
Fait inverser tous les boutons.
Definition: checkBoxDialog.py:54
src.checkBoxDialog.CheckBoxDialog.all
def all(self)
Fait cocher tous les baladeurs.
Definition: checkBoxDialog.py:47
src.checkBoxDialog.CheckBoxDialog.ui
ui
Definition: checkBoxDialog.py:37
QtCore
src.checkBoxDialog.CheckBoxDialog.__init__
def __init__(self, parent=None)
Le constructeur.
Definition: checkBoxDialog.py:34
src.checkBoxDialog.CheckBoxDialog.none
def none(self)
Fait décocher tous les boutons.
Definition: checkBoxDialog.py:61
QtWidgets