def METHOD_NAME(self, event=None):
    if get_workbench().in_heap_mode():
        self.tree.configure(displaycolumns=("name", "id"))
        # self.tree.columnconfigure(1, weight=1, width=400)
        # self.tree.columnconfigure(2, weight=0)
    else:
        self.tree.configure(displaycolumns=("name", "value"))
        # self.tree.columnconfigure(1, weight=0)
        # self.tree.columnconfigure(2, weight=1, width=400)