Page 628 - 2
P. 628

super().__init__()
                    self.ui = uic.loadUi("main_page8.ui", self) # main  창 불러옴


                    self.title = 'PyQt5 main07.ui'
                    self.left = 10 # 변수선언
                    self.top = 30
                    self.width = 800
                    self.height = 480


                    self.correct="1,2,3,4"
                    self.i=0
                    self.j=0




                    global a
                    global b
                    global teacher1
                    global teacher2
                    global teacher3
                    global teacher4




                    if(b==1):  # 상태버튼이 눌렸을때
                        if(c==1):  # 입실 버튼이 눌렸을때
                            if(a==1):
                                teacher1=" 재실중"
                            if (a == 2):
                                teacher2 = " 재실중"
                            if (a == 3):
                                teacher3 = " 재실중"      # 어떤 선생님으로 할지 선택
                            if (a == 4):
                                teacher4 = " 재실중"


                        if(c==2):  # 조퇴버튼이 눌렸을때
                            if (a == 1):
                                teacher1 = " 조퇴"
                            if (a == 2):
                                teacher2 = " 조퇴"
                            if (a == 3):
                                teacher3 = " 조퇴"
                            if (a == 4):
                                teacher4 = " 조퇴"
                        if (c == 3):   # 출장버튼이 눌렸을때
                            if (a == 1):
                                teacher1 = " 출장"


                                                         - 628 -
   623   624   625   626   627   628   629   630   631   632   633