-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialogs.py
50 lines (34 loc) · 1.66 KB
/
dialogs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from PyQt5 import uic
from PyQt5 import QtWidgets, QtCore
from PyQt5.QtGui import QColor
from PyQt5.QtWidgets import QGraphicsDropShadowEffect, QDialogButtonBox, QVBoxLayout, QLabel
class Load_versement_dialog(QtWidgets.QDialog):
def __init__(self):
super(Load_versement_dialog, self).__init__()
uic.loadUi("./ui/dialog_load_vers.ui", self)
self.setWindowTitle("importer les versement")
self.full_name = self.findChild(QtWidgets.QLabel, "label_4")
self.rip = self.findChild(QtWidgets.QLabel, "label_5")
self.valeur = self.findChild(QtWidgets.QLabel, "label_6")
self.progress = self.findChild(QtWidgets.QProgressBar, "progressBar")
class CustomDialog(QtWidgets.QDialog):
def __init__(self, msg, parent=None):
super().__init__(parent)
self.setWindowTitle("Alert")
QBtn = QDialogButtonBox.Ok | QDialogButtonBox.Cancel
self.buttonBox = QDialogButtonBox(QBtn)
self.buttonBox.accepted.connect(self.accept)
self.buttonBox.rejected.connect(self.reject)
self.layout = QVBoxLayout()
message = QLabel(msg)
self.layout.addWidget(message)
self.layout.addWidget(self.buttonBox)
self.setLayout(self.layout)
class Load_account_dialog(QtWidgets.QDialog):
def __init__(self):
super(Load_account_dialog, self).__init__()
uic.loadUi("./ui/dialog_load_compte.ui", self)
self.setWindowTitle("importer les CCP comptes")
self.full_name = self.findChild(QtWidgets.QLabel, "label_4")
self.rip = self.findChild(QtWidgets.QLabel, "label_5")
self.progress = self.findChild(QtWidgets.QProgressBar, "progressBar")