-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfirm_todo.py
52 lines (43 loc) · 1.8 KB
/
confirm_todo.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
51
52
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'confirm_todo.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Confirm(object):
def setupUi(self, Confirm):
Confirm.setObjectName("Confirm")
Confirm.resize(280, 105)
Confirm.setMinimumSize(QtCore.QSize(280, 105))
Confirm.setMaximumSize(QtCore.QSize(280, 105))
self.buttonBox = QtWidgets.QDialogButtonBox(Confirm)
self.buttonBox.setGeometry(QtCore.QRect(40, 60, 201, 32))
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Ok)
self.buttonBox.setCenterButtons(True)
self.buttonBox.setObjectName("buttonBox")
self.label = QtWidgets.QLabel(Confirm)
self.label.setGeometry(QtCore.QRect(40, 20, 201, 16))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(14)
self.label.setFont(font)
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setObjectName("label")
self.retranslateUi(Confirm)
self.buttonBox.accepted.connect(Confirm.accept)
self.buttonBox.rejected.connect(Confirm.reject)
QtCore.QMetaObject.connectSlotsByName(Confirm)
def retranslateUi(self, Confirm):
_translate = QtCore.QCoreApplication.translate
Confirm.setWindowTitle(_translate("Confirm", "Confirmation"))
self.label.setText(_translate("Confirm", "Task will be deleted"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
Confirm = QtWidgets.QDialog()
ui = Ui_Confirm()
ui.setupUi(Confirm)
Confirm.show()
sys.exit(app.exec_())