def friends_width(self, event):
    canvas_width = event.width
    self.canvas.itemconfig(self.friends_area, width=canvas_width)
def friends_width(self, event):
    canvas_width = event.width
    self.canvas.itemconfig(self.friends_area, width=canvas_width)