Page 674 - 3-3
P. 674
# 객체 생성
QtWidgets.QDialog.__init__(self, parent)
# 상속받지 않음
self.ui = uic.loadUi("InForm.ui",self)
# 입실 창 불러옴
current_class_t=open("current_class.txt",'r')
# 학생 번호 텍스트 파일 염
now_class=current_class_t.read()
#student_num 에 학생 번호를 넣음
self.ui.Informlabel.setText(" 현재 %c 교시입니다 왜 늦었나요. ?"%(now_class))
#UI 의 시간 라벨에 입실시간을 출력함
@pyqtSlot()
#( 시그널 슬롯 이벤트가 발생되었을 때& )
def Sick_Late(self):
# 질병으로 지각했을 경우
status_reason_input('0','0')
# 질병 지각을 의미하는 0 0 을 상태와 사유에 넣음
self.mw1 = StudentForm()
# 학생 정보 화면을 염
self.mw1.showFullScreen()
# 최대화하여 보여줌
self.close()
# 현재 창 숨김
def Admit_Late(self):
# 인정지각했을 경우
status_reason_input('0','1')
# 인정 지각을 의미하는 0 1 을 상태와 사유에 넣음
self.mw1 = StudentForm()
# 학생 정보화면을 염
self.mw1.showFullScreen()
- 674 -