title: How can I insert a new line in Tkinter Treeview?
body: <p>I am working on a treeview in which the text in one column (address) can not fit into a single line. My code looks like this:</p>
  <pre><code># Create the invoice window
      invoice = Tk()
      invoice.title(&quot;Invoices&quot;)
      invoice.geometry(&quot;1800x1000&quot;)
  
      # Create treeview frame
      tree_frame = Frame(invoice)
      tree_frame.pack(pady=10)
  
      # Create scrollbar for treeview
      tree_scroll = Scrollbar(tree_frame)
      tree_scroll.pack(side=RIGHT, fill=Y)
  
      # Create treeview
      tree = ttk.Treeview(tree_frame, yscrollcommand=tree_scroll.set, selectmode=&quot;extended&quot;)
      tree.pack()
  
      # Configure scrollbar
      tree_scroll.config(command=tree.yview)
  
      # Define the columns of the treeview
      tree['columns'] = (
      &quot;Invoice Number&quot;, &quot;Company Name&quot;, &quot;Company Address&quot;, &quot;VAT Number&quot;, &quot;Total&quot;, &quot;Currency&quot;, &quot;Invoice Date&quot;)
  
      # Place the columns
      tree.column(&quot;#0&quot;, width=0, stretch=NO)
      tree.column(&quot;Invoice Number&quot;, anchor=CENTER, width=140)
      tree.column(&quot;Company Name&quot;, anchor=CENTER, width=140)
      tree.column(&quot;Company Address&quot;, anchor=CENTER, width=140)
      tree.column(&quot;VAT Number&quot;, anchor=CENTER, width=140)
      tree.column(&quot;Total&quot;, anchor=CENTER, width=140)
      tree.column(&quot;Currency&quot;, anchor=CENTER, width=140)
      tree.column(&quot;Invoice Date&quot;, anchor=CENTER, width=140)
  
      # Create headings for columns
      tree.heading(&quot;#0&quot;, text=&quot;&quot;, anchor=W)
      tree.heading(&quot;Invoice Number&quot;, text=&quot;Invoice Number&quot;, anchor=CENTER)
      tree.heading(&quot;Company Name&quot;, text=&quot;Company Name&quot;, anchor=CENTER)
      tree.heading(&quot;Company Address&quot;, text=&quot;Company Address&quot;, anchor=CENTER)
      tree.heading(&quot;VAT Number&quot;, text=&quot;VAT Number&quot;, anchor=CENTER)
      tree.heading(&quot;Total&quot;, text=&quot;Total&quot;, anchor=CENTER)
      tree.heading(&quot;Currency&quot;, text=&quot;Currency&quot;, anchor=CENTER)
      tree.heading(&quot;Invoice Date&quot;, text=&quot;Invoice Date&quot;, anchor=CENTER)
  </code></pre>
  <p>How can I implement a new line so that when the address gets to the end of the space, it continues from the new line? Of course, the whole row should be the same height.</p>