def bind_events(self):
    self.bind('<Configure>', self.on_frame_resized)
    self.canvas.bind('<Configure>', self.friends_width)
def bind_events(self):
    self.bind('<Configure>', self.on_frame_resized)
    self.canvas.bind('<Configure>', self.friends_width)