title: How to center buttons in Kivy?
body: <p>I am new to Python UI programming, and I am trying out Kivy. I want to center some buttons on my screen, but the buttons do not move from the bottom right of the window. I was wondering if anyone could point out what I am doing wrong or am missing?</p>
  
  <p>vgx.kv:</p>
  
  <pre><code>#:kivy 1.9.1
  
  &lt;VgxMainScreen&gt;:
      BoxLayout:
          size_hint: 0.2,0.2
          size: 200, 100
          orientation: 'vertical'
  
          Button:
              text: 'Game Select'
          Button:
              text: 'Options'
          Button:
              text: 'Controllers'
  
  &lt;VgxUI&gt;:
      AnchorLayout:
          anchor_x: 'center'
          VgxMainScreen:
              size_hint: 0.2,0.2
  
  &lt;VgxApp&gt;:
      FloatLayout:
          VgxUI:
              center: 0.5, 0.5
  </code></pre>
  
  <p>VgxApp.py:</p>
  
  <pre><code>import kivy
  from kivy.app import App
  from kivy.uix.widget import Widget
  kivy.require('1.9.1')
  
  class VgxMainScreen(Widget):
      pass
  
  class VgxUI(Widget):
      pass
  
  class VgxApp(App):
      def build(self):
          return VgxUI()
  
  if __name__ == '__main__':
      VgxApp().run()
  </code></pre>