def create_account(self):
    username = self.username_entry.get()
    real_name = self.real_name_entry.get()
    if self.requester.create_account(username, real_name):
        self.username = username
        self.real_name = real_name
        self.show_friends()
    else:
        msg.showerror('Failed', 'Account already exists!')
def create_account(self):
    username = self.username_entry.get()
    real_name = self.real_name_entry.get()
    if self.requester.create_account(username, real_name):
        self.username = username
        self.real_name = real_name
        self.show_friends()
    else:
        msg.showerror('Failed', 'Account already exists!')