code: def __init__(self, labeltext, object, setfunction=None):
      self.labeltext = labeltext
      self.object = object
      self.setfunction = setfunction
  
imports: from reprlib import Repr
  from idlelib.tree import TreeItem, TreeNode, ScrolledCanvas
label_desc: Use image node_id 1 to create a new ObjectTreeItem object from inherited base classes: TreeItem with example: obj = ObjectTreeItem(labeltext, object, setfunction)