title: how to "center text in a row" tkinter treeview
body: <p>I want to center text in rows. I used tkinter for GUI. Which code should I use and where?</p>
  <pre><code>tv1[&quot;column&quot;]=list(pivot.columns)
  tv1[&quot;show&quot;] = &quot;headings&quot;
  for column in tv1[&quot;columns&quot;]:
      tv1.heading(column, text = column)
      
  pivot_rows = pivot.to_numpy().tolist()
  for row in pivot_rows:
      tv1.insert(&quot;&quot;,&quot;end&quot;, values=row)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/ZO7bj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZO7bj.png" alt="GUI" /></a></p>