def on_frame_resized(self, event=None):
    self.canvas.configure(scrollregion=self.canvas.bbox('all'))
def on_frame_resized(self, event=None):
    self.canvas.configure(scrollregion=self.canvas.bbox('all'))