def update_toolbox_icon(self, event):
    curItem = self.tool_tree.focus()
    dict = self.tool_tree.item(curItem)
    self.toolbox_name = dict.get('text').replace('  ', '')
    self.toolbox_open = dict.get('open')
    if (self.toolbox_open == True):
        self.tool_tree.item(self.toolbox_name, image=self.open_toolbox_icon)
    else:
        self.tool_tree.item(self.toolbox_name, image=self.closed_toolbox_icon)
def update_toolbox_icon(self, event):
    curItem = self.tool_tree.focus()
    dict = self.tool_tree.item(curItem)
    self.toolbox_name = dict.get('text').replace('  ', )
    self.toolbox_open = dict.get('open')
    if (self.toolbox_open == True):
        self.tool_tree.item(self.toolbox_name, image=self.open_toolbox_icon)
    else:
        self.tool_tree.item(self.toolbox_name, image=self.closed_toolbox_icon)