Example #1
0
 def openWebViewClass(self):
     self.dep_btn_clicked()
     '''
     res_data=get_credit_html()
     credit_html=res_data.text 
     print(credit_html)
     '''
     widget.setCurrentIndex(11)
     on_layout_convert_center(main_window, widget, 930, 650)
Example #2
0
 def openModeClass(self):
     widget.setCurrentIndex(2)
     Credit_ly = CreditLayout()
     BrDown_ly = BrDownLayout()
     WebView_ly = WebViewLayout()
     widget.addWidget(Credit_ly)  # 9
     widget.addWidget(BrDown_ly)  # 10
     widget.addWidget(WebView_ly)  # 11
     res_data = get_current_credit()
     Credit_ly.credit_amount = str(res_data["credit"])
     # 여기서 크레딧페이지 생성
     on_layout_convert_center(main_window, widget, 450, 250)
Example #3
0
 def onFindPwdHandler(self):
     if(self.onUserInfoAlert() == True):
         widget.setCurrentIndex(8)
         on_layout_convert_center(main_window, widget, 370, 180)
Example #4
0
 def openFindPwdClass(self):
     widget.setCurrentIndex(7)
     on_layout_convert_center(main_window, widget, 420, 180)
Example #5
0
 def onPwdInitHandler(self):
     if(self.onPwdInitAlert() == True):
         widget.setCurrentIndex(0)
         on_layout_convert_center(main_window, widget, 420, 180)
Example #6
0
 def openBrDownClass(self):
     self.all_btn_clicked()
     widget.setCurrentIndex(10)
     widget.currentWidget().call_credit_log()
     #BrDown_ly.call_credit_log()
     on_layout_convert_center(main_window, widget, 400, 500)
Example #7
0
 def onCreditTriggeredHandler(self):
   widget.setCurrentIndex(9)
   on_layout_convert_center(self, widget, 600, 500)
Example #8
0
 def onToolBarTriggeredHandler(self):
   widget.setCurrentIndex(2)
   on_layout_convert_center(self, widget, 450, 250)
Example #9
0
 def openDataUploadClass(self):
     widget.setCurrentIndex(5)
     on_layout_convert_center(self, widget, 500, 500)
Example #10
0
 def openLoginClass(self):
     widget.setCurrentIndex(widget.currentIndex() - 1)
     on_layout_convert_center(main_window, widget, 400, 430) ##########
Example #11
0
 def openSignUpClass(self):
     widget.setCurrentIndex(1)
     on_layout_convert_center(main_window, widget, 500, 250)
Example #12
0
 def openProviderClass(self):
     widget.setCurrentIndex(4)
     on_layout_convert_center(main_window, widget, 700, 500)
Example #13
0
 def openReqUserClass(self):
     #main_window.create_project.setEnabled(True)
     widget.setCurrentIndex(3)
     on_layout_convert_center(main_window, widget, 700, 500)
Example #14
0
 def onProjectCreateHandler(self):
     widget.setCurrentIndex(4)
     Prov_ly.onAttendHandler(self.attend_learning()) # 요청자가 프로젝트에 참여버튼을 누르면 제공자에 해당 p_id 전송
     print(Prov_ly.self_attend_p_id)
     on_layout_convert_center(main_window, widget, 700, 500)
Example #15
0
 def complete_upload(self):
 # 성공적으로 프로젝트가 생성되면
     widget.setCurrentIndex(3)
     on_layout_convert_center(main_window, widget, 700, 500)
Example #16
0
    #Progress_ly = Progress()
    #TrainRslt_ly = TrainResult()

    #레이아웃 스택 추가
    widget.addWidget(Login_ly) #0
    widget.addWidget(SignUp_ly) #1
    widget.addWidget(Mode_ly) #2
    widget.addWidget(User_ly) #3
    widget.addWidget(Prov_ly) #4
    widget.addWidget(DtUp_ly) #5
    widget.addWidget(FdId_ly) #6
    widget.addWidget(FdPwd_ly) #7
    widget.addWidget(PwdInit_ly) #8


    #widget.addWidget(Progress_ly) - 진행상황 ui 따로 필요 x (요청자 화면에서 진행상황을 보여줄 것임)
    #widget.addWidget(TrainRslt_ly) - 결과확인 ui 따로 필요 x (결과 모델을 따로 다운받을 수 있도록)


    #윈도우 객체 생성 및 타이틀 설정
    main_window = MyMainWindow()
    main_window.setWindowTitle("DAIG")

    # 윈도우 크기 설정 -> 화면 중앙 배치 -> 윈도우 열기
    on_layout_convert_center(main_window, widget, 400, 430) ##########
    main_window.toolBarTriggerHandler()
    main_window.show()

    sys.exit(app.exec_())