def info_confirm(self) : self.today() # 데이터 형식에 대한 클래스를 따로 정할지 고민중 nav.info_confirm(self.name, self.date, self.password) check = input() if check == "Y" : self.join() else : self.cancel()
def entry_confirm(self) : nav.entry_confirm() check = input() if check == "Y" : self.name_confirm() elif check == "N" : pass
def join(self) : self.account = self.give_account() num1 = int(self.account[:1]) + 5 savingsA = str(num1) + self.account[1:] #print(self.account) #print(savingsA) nav.join(self.name, self.account) self.save_info(self.account, self.name, self.password, self.date, savingsA) self.press_anykey()
def password_confirm(self) : # check에 비밀번호가 올바른 형식인지 확인 while True : nav.password_confirm() self.password = input() check = PasswordData.dataConfirm(self.password) if check : self.info_confirm() break else : self.wrong_password()
def name_confirm(self) : # check에 이름이 올바른 형식인지 확인 while True : nav.name_confirm() self.name = input() self.name = self.name.strip(' ') check = NameData.dataConfirm(self.name) if check : self.password_confirm() break else : self.wrong_name()
def press_anykey(self) : nav.press_anykey() anykey = input()
def wrong_password(self) : nav.wrong_password() self.press_anykey()
def wrong_name(self) : nav.wrong_name() self.press_anykey()
def cancel(self) : nav.cancel() self.press_anykey()