title: like putting two buttons centered in kivy?
body: <pre><code>import kivy
  from kivy.app import App
  from kivy.uix.button import Button
  from kivy.uix.boxlayout import BoxLayout
  from kivy.uix.anchorlayout import AnchorLayout
  from kivy.uix.gridlayout import GridLayout
  
  class body(BoxLayout):
      def __init__(self, **kwargs):
          super(body,self).__init__(**kwargs);
          self.orientation = 'vertical';
          lst = ['button'];
          cont = len(lst);
          for d in lst:
              eval('self.'+d+'()');
          self.add(cont);
  
      def button(self):
          self.hLayout_1 = AnchorLayout(orientation='horizontal');
          self.button_1 = Button(text='conectar',size_hint=(None,None),size=(100,100));
          self.button_2 = Button(text='enviar',size_hint=(None,None),size=(100,100));
          self.hLayout_1.add_widget(self.button_1);
          self.hLayout_1.add_widget(self.button_2);
  
      def add(self,num):
          for n in range(num):
              eval('self.add_widget(self.hLayout_'+str(n+1)+')');
  
  class Client(App):
      def build(self):
          b = body();
          return b
  
  
  Client().run();
  </code></pre>
  
  <p>buttons leave me one on another, as I fix this?</p>
  
  <p>or also with gridlayout</p>
  
  <pre><code>import kivy
  from kivy.app import App
  from kivy.uix.button import Button
  from kivy.uix.boxlayout import BoxLayout
  from kivy.uix.anchorlayout import AnchorLayout
  from kivy.uix.gridlayout import GridLayout
  
  class body(BoxLayout):
      def __init__(self, **kwargs):
          super(body,self).__init__(**kwargs);
          self.pos_hint={'center_x':.5}
          self.orientation = 'vertical';
          lst = ['button'];
          cont = len(lst);
          for d in lst:
              eval('self.'+d+'()');
          self.add(cont);
  
      def button(self):
          self.hLayout_1 = GridLayout(cols=2);
          self.button_1 = Button(text='conectar',size_hint=(None,None),size=(100,100));
          self.button_2 = Button(text='enviar',size_hint=(None,None),size=(100,100));
          self.hLayout_1.add_widget(self.button_1);
          self.hLayout_1.add_widget(self.button_2);
  
      def add(self,num):
          for n in range(num):
              eval('self.add_widget(self.hLayout_'+str(n+1)+')');
  
  class Client(App):
      def build(self):
          b = body();
          return b
  
  
  Client().run();
  </code></pre>
  
  <p>I can focus as the two buttons correctly?</p>
  
  <p>I've tried with various layout, but it has not worked, maybe it's because it still did not quite understand that sirver "size_hint" appreciate some help.</p>