This repository was archived by the owner on Sep 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathAdd_teacher.py
101 lines (90 loc) · 4.72 KB
/
Add_teacher.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Add_teacher.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
class add_Teacher_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName(_fromUtf8("Dialog"))
Dialog.resize(257, 138)
Dialog.setMaximumSize(QtCore.QSize(424, 138))
self.gridLayout_2 = QtGui.QGridLayout(Dialog)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
self.groupBox = QtGui.QGroupBox(Dialog)
self.groupBox.setMaximumSize(QtCore.QSize(424, 89))
self.groupBox.setObjectName(_fromUtf8("groupBox"))
self.gridLayout = QtGui.QGridLayout(self.groupBox)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.label = QtGui.QLabel(self.groupBox)
self.label.setObjectName(_fromUtf8("label"))
self.horizontalLayout_2.addWidget(self.label)
self.teacher_name = QtGui.QLineEdit(self.groupBox)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.teacher_name.sizePolicy().hasHeightForWidth())
self.teacher_name.setSizePolicy(sizePolicy)
self.teacher_name.setObjectName(_fromUtf8("teacher_name"))
self.horizontalLayout_2.addWidget(self.teacher_name)
self.gridLayout.addLayout(self.horizontalLayout_2, 0, 0, 1, 1)
self.horizontalLayout_3 = QtGui.QHBoxLayout()
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.label_2 = QtGui.QLabel(self.groupBox)
self.label_2.setMinimumSize(QtCore.QSize(24, 0))
self.label_2.setObjectName(_fromUtf8("label_2"))
self.horizontalLayout_3.addWidget(self.label_2)
self.subject_name = QtGui.QLineEdit(self.groupBox)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.subject_name.sizePolicy().hasHeightForWidth())
self.subject_name.setSizePolicy(sizePolicy)
self.subject_name.setObjectName(_fromUtf8("subject_name"))
self.horizontalLayout_3.addWidget(self.subject_name)
self.gridLayout.addLayout(self.horizontalLayout_3, 1, 0, 1, 1)
spacerItem = QtGui.QSpacerItem(20, 10, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.gridLayout.addItem(spacerItem, 2, 0, 1, 1)
self.label.raise_()
self.teacher_name.raise_()
self.label_2.raise_()
self.subject_name.raise_()
self.subject_name.raise_()
self.gridLayout_2.addWidget(self.groupBox, 0, 0, 1, 1)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.pushButton = QtGui.QPushButton(Dialog)
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.horizontalLayout.addWidget(self.pushButton)
self.cancel = QtGui.QPushButton(Dialog)
self.cancel.setObjectName(_fromUtf8("cancel"))
self.horizontalLayout.addWidget(self.cancel)
self.back = QtGui.QPushButton(Dialog)
self.back.setObjectName(_fromUtf8("back"))
self.horizontalLayout.addWidget(self.back)
self.gridLayout_2.addLayout(self.horizontalLayout, 1, 0, 1, 1)
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
Dialog.setWindowTitle(_translate("Dialog", "Dialog", None))
self.groupBox.setTitle(_translate("Dialog", "Add Teacher", None))
self.label.setText(_translate("Dialog", "Teacher\'s Name", None))
self.label_2.setText(_translate("Dialog", "Subject", None))
self.pushButton.setText(_translate("Dialog", "Add", None))
self.cancel.setText(_translate("Dialog", "Cancel", None))
self.back.setText(_translate("Dialog", "Back", None))