def show_friends(self):
    self.configure(menu=self.menu)
    self.login_frame.pack_forget()
    self.canvas = tk.Canvas(self, bg='white')
    self.canvas_frame = tk.Frame(self.canvas)
    self.scrollbar = ttk.Scrollbar(self, orient='vertical', command=self.canvas.yview)
    self.canvas.configure(yscrollcommand=self.scrollbar.set)
    self.scrollbar.pack(side=tk.LEFT, fill=tk.Y)
    self.canvas.pack(side=tk.LEFT, expand=1, fill=tk.BOTH)
    self.friends_area = self.canvas.create_window((0, 0), window=self.canvas_frame, anchor='nw')
    self.bind_events()
    self.load_friends()
def show_friends(self):
    self.configure(menu=self.menu)
    self.login_frame.pack_forget()
    self.canvas = tk.Canvas(self, bg='white')
    self.canvas_frame = tk.Frame(self.canvas)
    self.scrollbar = ttk.Scrollbar(self, orient='vertical', command=self.canvas.yview)
    self.canvas.configure(yscrollcommand=self.scrollbar.set)
    self.scrollbar.pack(side=tk.LEFT, fill=tk.Y)
    self.canvas.pack(side=tk.LEFT, expand=1, fill=tk.BOTH)
    self.friends_area = self.canvas.create_window((0, 0), window=self.canvas_frame, anchor='nw')
    self.bind_events()
    self.load_friends()