title: How to center text horizontally in a Kivy text input?
body: <p>I want to center a single line of text in Kivy text input.
  I'm going to use padding</p>
  
  <pre><code>widget.padding = [ (self.textinput.width - width of line) / 2, 20, 0, 0]
  </code></pre>
  
  <p>but i can't find the width of the line. How can I calculate or access the width of the line?
  <a href="https://i.stack.imgur.com/eXkji.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eXkji.png" alt="enter image description here"></a></p>