class_docstr: A canvas widget that displays a single segment of a hierarchical
  tree.  Each ``TreeSegmentWidget`` connects a single "node widget"
  to a sequence of zero or more "subtree widgets".  By default, the
  bottom of the node is connected to the top of each subtree by a
  single line.  However, if the ``roof`` attribute is set, then a
  single triangular "roof" will connect the node to all of its
  children.
  
  Attributes:
    - ``roof``: What sort of connection to draw between the node and
      its subtrees.  If ``roof`` is true, draw a single triangular
      "roof" over the subtrees.  If ``roof`` is false, draw a line
      between each subtree and the node.  Default value is false.
    - ``xspace``: The amount of horizontal space to leave between
      subtrees when managing this widget.  Default value is 10.
    - ``yspace``: The amount of space to place between the node and
      its children when managing this widget.  Default value is 15.
    - ``color``: The color of the lines connecting the node to its
      subtrees; and of the outline of the triangular roof.  Default
      value is ``'#006060'``.
    - ``fill``: The fill color for the triangular roof.  Default
      value is ``''`` (no fill).
    - ``width``: The width of the lines connecting the node to its
      subtrees; and of the outline of the triangular roof.  Default
      value is 1.
    - ``orientation``: Determines whether the tree branches downwards
      or rightwards.  Possible values are ``'horizontal'`` and
      ``'vertical'``.  The default value is ``'vertical'`` (i.e.,
      branch downwards).
    - ``draggable``: whether the widget can be dragged by the user.
class_docstr_tok: ["A","canvas","widget","that","displays","a","single","segment","of","a","hierarchical","tree",".","Each","``","TreeSegmentWidget","``","connects","a","single","``","node","widget","''","to","a","sequence","of","zero","or","more","``","subtree","widgets","''",".","By","default",",","the","bottom","of","the","node","is","connected","to","the","top","of","each","subtree","by","a","single","line",".","However",",","if","the","``","roof","``","attribute","is","set",",","then","a","single","triangular","``","roof","''","will","connect","the","node","to","all","of","its","children",".","Attributes",":","-","``","roof","``",":","What","sort","of","connection","to","draw","between","the","node","and","its","subtrees",".","If","``","roof","``","is","true",",","draw","a","single","triangular","``","roof","''","over","the","subtrees",".","If","``","roof","``","is","false",",","draw","a","line","between","each","subtree","and","the","node",".","Default","value","is","false",".","-","``","xspace","``",":","The","amount","of","horizontal","space","to","leave","between","subtrees","when","managing","this","widget",".","Default","value","is","10",".","-","``","yspace","``",":","The","amount","of","space","to","place","between","the","node","and","its","children","when","managing","this","widget",".","Default","value","is","15",".","-","``","color","``",":","The","color","of","the","lines","connecting","the","node","to","its","subtrees",";","and","of","the","outline","of","the","triangular","roof",".","Default","value","is","``","'","#","006060","'","``",".","-","``","fill","``",":","The","fill","color","for","the","triangular","roof",".","Default","value","is","``","``","``","(","no","fill",")",".","-","``","width","``",":","The","width","of","the","lines","connecting","the","node","to","its","subtrees",";","and","of","the","outline","of","the","triangular","roof",".","Default","value","is","1",".","-","``","orientation","``",":","Determines","whether","the","tree","branches","downwards","or","rightwards",".","Possible","values","are","``","'horizontal","'","``","and","``","'vertical","'","``",".","The","default","value","is","``","'vertical","'","``","(","i.e.",",","branch","downwards",")",".","-","``","draggable","``",":","whether","the","widget","can","be","dragged","by","the","user","."]
code: def subtrees(self):
      return self._subtrees[:]
  
imports: from tkinter import IntVar, Menu, Tk
  from nltk.draw.util import BoxWidget, CanvasFrame, CanvasWidget, OvalWidget, ParenWidget, TextWidget
  from nltk.tree import Tree
  from nltk.util import in_idle
label_desc: Use image node_id 5 for calling the TreeSegmentWidget obj's underlying member method code with example usage: obj.subtrees() and returns: self