code: def create_scroll_region(self):
          
          canvas_width = 0
          canvas_height = 0
          for label in self._category_labels.values():
              width = label.winfo_reqwidth()
              canvas_height += label.winfo_reqheight()
              canvas_width = width if width > canvas_width else canvas_width
          self._canvas_categories.config(scrollregion="0 0 {0} {1}".format(canvas_width, canvas_height))
docs: Setup the scroll region on the Canvas