def show_game_status_box(self): print("경기 상황 확인 박스 표시") self.__init_window.setEnabled(False) self.__game_status_show_Dialog = dialog.Dialog_Modified(self.__init_window) self.__game_status_show_ui = game_status_show.Ui_Dialog(self, self.__init_ui, self.__init_window) self.__game_status_show_ui.setupUi(self.__game_status_show_Dialog) self.__game_status_show_Dialog.show()
def choice_game_btn_clicked_connect(self): print("경기 선택") self.__dialog.setEnabled(False) choice_idx = self.__idx[self.game_table.currentRow()] if (self.__game_manager.game_list[choice_idx].proceeding == False): self.__bet_select_horse_Dialog = dialog.Dialog_Modified( self.__dialog) self.__bet_select_horse_ui = bet_select_horse.Ui_Dialog( self.__member, self.__init_ui, choice_idx) self.__bet_select_horse_ui.game_manager = self.__game_manager self.__bet_select_horse_ui.setupUi(self.__bet_select_horse_Dialog) self.__bet_select_horse_Dialog.show() else: self.__error_Dialog = dialog.Dialog_Modified(self.__dialog) self.__error_ui = error.Ui_Dialog(self, self.__dialog) self.__error_ui.setupUi(self.__error_Dialog) self.__error_ui.error_label.setText("종료된 경기입니다.") self.__error_Dialog.show()
def show_point_exchange_box(self): print("포인트 환전 박스 표시") main_window = self.__init_ui.main_window main_window.setEnabled(False) self.__point_exchange_Dialog = dialog.Dialog_Modified(self.__init_window) self.__point_exchange_ui = point_exchange.Ui_Dialog(self, self.__init_ui) self.__point_exchange_ui.setupUi(self.__point_exchange_Dialog) self.__point_exchange_Dialog.show()
def show_manage_game_box(self): print("경기 관리 박스 표시") self.__init_window.setEnabled(False) self.__game_manage_Dialog = dialog.Dialog_Modified(self.__init_window) self.__game_manage_ui = manage_game.Ui_Dialog(self, self.__init_ui) self.__game_manage_ui.game_manager = self.__game_manager self.__game_manage_ui.setupUi(self.__game_manage_Dialog) self.__game_manage_Dialog.show()
def show_member_info_box(self): print("회원 정보 박스 표시") main_window = self.__init_ui.main_window main_window.setEnabled(False) self.__member_info_Dialog = dialog.Dialog_Modified(self.__init_window) self.__member_info_ui = mem_info.Ui_Dialog(self, self.__init_ui) self.__member_info_ui.setupUi(self.__member_info_Dialog) self.__member_info_Dialog.show()
def show_login_box(self): print("로그인 박스 표시") main_window = self.__init_ui.main_window main_window.setEnabled(False) self.__login_Dialog = dialog.Dialog_Modified(self.__init_window) self.__login_ui = login.Ui_Dialog(self, self.__init_ui) self.__login_ui.setupUi(self.__login_Dialog) self.__login_Dialog.show()
def show_signup_box(self): print("회원 가입 박스 표시") main_window = self.__init_ui.main_window main_window.setEnabled(False) self.__signup_Dialog = dialog.Dialog_Modified(self.__init_window) self.__signup_ui = signup.Ui_Dialog(self, self.__init_ui) self.__signup_ui.setupUi(self.__signup_Dialog) self.__signup_Dialog.show()
def show_betting_result_box(self): print("베팅 결과 박스 표시") main_window = self.__init_ui.main_window main_window.setEnabled(False) self.__betting_result_Dialog = dialog.Dialog_Modified(self.__init_window) self.__betting_result_ui = betting_result.Ui_Dialog(self, self.__init_ui) self.__betting_result_ui.setupUi(self.__betting_result_Dialog) self.__betting_result_Dialog.show()
def show_bet_box(self): print("베팅 박스 표시") main_window = self.__init_ui.main_window main_window.setEnabled(False) self.__bet_select_game_Dialog = dialog.Dialog_Modified(self.__init_window) self.__bet_select_game_ui = bet_select_game.Ui_Dialog(self, self.__init_ui,self.__init_window) self.__bet_select_game_ui.game_manager = self.__gm self.__bet_select_game_ui.setupUi(self.__bet_select_game_Dialog) self.__bet_select_game_Dialog.show()
def show_error_box(self, prev_dialog, msg): print("에러 박스 표시") main_window = self.__init_ui.main_window main_window.setEnabled(False) self.__error_Dialog = dialog.Dialog_Modified(prev_dialog) self.__error_ui = error.Ui_Dialog(self, prev_dialog) self.__error_ui.setupUi(self.__error_Dialog) self.__error_ui.error_label.setText(msg) self.__error_Dialog.show()
def show_game_add_box(self): print("경기 추가 박스 표시") self.__game_manage_Dialog.setEnabled(False) self.__manage_game_add_Dialog = dialog.Dialog_Modified( self.__game_manage_Dialog) self.__manage_game_add_ui = manage_game_add.Ui_Dialog( self, self.__init_ui) self.__manage_game_add_ui.setupUi(self.__manage_game_add_Dialog) self.__manage_game_add_Dialog.show()
def game_result_btn_clicked(self): print("경기 결과 버튼 클릭") current_idx = self.tableWidget.currentRow() self.__dialog.setEnabled(False) if self.__gm.game_list[current_idx].proceeding == True: self.__game_result_show_Dialog = dialog.Dialog_Modified(self.__dialog) self.__game_result_show_ui = game_result_show.Ui_Dialog(self.__gm, self.__init_ui, current_idx) self.__game_result_show_ui.setupUi(self.__game_result_show_Dialog) self.__game_result_show_Dialog.show() else: self.__dialog.setEnabled(False) self.show_error_box(self.__dialog, "경기 종료 전입니다.")
def betting_btn_clicked(self): print("베팅 버튼 클릭") game = self.__game_manager.game_list[self.__idx] choice_idx = self.horse_table.currentRow() bet_point = self.input_point.text() pw = self.input_pw.text() horse_name = game.horses[choice_idx].name game_id = game.id if (game.proceeding == False): self.__member.bet(bet_point, pw, game_id, horse_name, self.__dialog) else: main_window = self.__init_ui.main_window main_window.setEnabled(False) self.__error_Dialog = dialog.Dialog_Modified(self.__dialog) self.__error_ui = error.Ui_Dialog(self, self.__dialog) self.__error_ui.setupUi(self.__error_Dialog) self.__error_ui.error_label.setText("종료된 경기입니다.") self.__error_Dialog.show() self.__dialog.close()