  
      def add_label(self):
          """ Add Treeview Title """
          logger.debug("Adding Treeview title")
          lbl = ttk.Label(self, text="Session Stats", anchor=tk.CENTER)
          lbl.pack(side=tk.TOP, expand=True, fill=tk.X, padx=5, pady=5)
  
      def tree_configure(self, helptext):
          """ Build a treeview widget to hold the sessions stats """
          logger.debug("Configuring Treeview")
          self.tree.configure(yscrollcommand=self.scrollbar.set)
 
</s> remove         self.tree.tag_configure("total",
                                background="black",
                                foreground="white")
        self.tree.pack(side=tk.LEFT, expand=True, fill=tk.X)
        self.scrollbar.pack(side=tk.RIGHT, fill=tk.Y)
 </s> add         self.tree.tag_configure("total", background="black", foreground="white")
        self.tree.pack(side=tk.TOP, fill=tk.X) </s> remove         self.tree = ttk.Treeview(self, height=1, selectmode=tk.BROWSE)
        self.scrollbar = ttk.Scrollbar(self,
                                       orient="vertical",
                                       command=self.tree.yview)
 </s> add         self.tree = ttk.Treeview(self.sub_frame, height=1, selectmode=tk.BROWSE)
        self.scrollbar = ttk.Scrollbar(self.tree_frame, orient="vertical", command=self.tree.yview)
        self.scrollbar.pack(side=tk.RIGHT, fill=tk.Y)
 </s> remove         self.pack(side=tk.TOP, padx=5, pady=5, expand=True, fill=tk.X, anchor=tk.N)

 </s> add         self.pack(side=tk.TOP, padx=5, pady=5, fill=tk.BOTH, expand=True) </s> remove             self.tree.column(column[0],
                             width=column[1],
                             anchor=tk.E,
                             minwidth=40)
 </s> add             self.tree.column(column[0], width=column[1], anchor=tk.E, minwidth=40)
        lbl = ttk.Label(self.sub_frame, text="Session Stats", anchor=tk.CENTER)
        lbl.pack(side=tk.TOP, fill=tk.X, padx=5, pady=5)

    def resize_frame(self, event):
        """ Resize the options frame to fit the canvas """
        logger.debug("Resize Analysis Frame")
        canvas_width = event.width
        canvas_height = event.height
        self.canvas.itemconfig(self.tree_canvas, width=canvas_width, height=canvas_height)
        logger.debug("Resized Analysis Frame")
  
      def add_label(self):
          """ Add Treeview Title """
          logger.debug("Adding Treeview title")
        lbl = ttk.Label(self.sub_frame, text="Session Stats", anchor=tk.CENTER)
        lbl.pack(side=tk.TOP, fill=tk.X, padx=5, pady=5)

    def resize_frame(self, event):
        """ Resize the options frame to fit the canvas """
        logger.debug("Resize Analysis Frame")
        canvas_width = event.width
        canvas_height = event.height
        self.canvas.itemconfig(self.tree_canvas, width=canvas_width, height=canvas_height)
        logger.debug("Resized Analysis Frame")
        lbl = ttk.Label(self.sub_frame, text="Session Stats", anchor=tk.CENTER)
        lbl.pack(side=tk.TOP, fill=tk.X, padx=5, pady=5)

    def resize_frame(self, event):
        """ Resize the options frame to fit the canvas """
        logger.debug("Resize Analysis Frame")
        canvas_width = event.width
        canvas_height = event.height
        self.canvas.itemconfig(self.tree_canvas, width=canvas_width, height=canvas_height)
        logger.debug("Resized Analysis Frame")
  
      def tree_configure(self, helptext):
          """ Build a treeview widget to hold the sessions stats """
          logger.debug("Configuring Treeview")
          self.tree.configure(yscrollcommand=self.scrollbar.set)
keep keep keep keep replace replace keep keep keep keep keep
 Analysis tab: Fix disappearing options on large datasets 
lib/gui/display_analysis.py