title: Open a new widget, arrange buttons. Python, KIVY
body: <p>With this code, what I'm trying to do is, group and display a few buttons next to each other and on press each button opens an app.</p>
  
  <p>PY File</p>
  
  <pre><code>class CustomPopup(popup):
      pass
  
  
  class TestApp(App):
  
      def build(self):
      help_me_button = Button(text='HELP ME')
      help_me_button.bind(on_press=self.open_helpme)
      games_button = Button(text='GAMES')
      games_button.bind(on_press=self.open_games)
  
      buttons = BoxLayout(orientation='horizontal')
      buttons.add_widget(help_me_button)
      buttons.add_widget(game_button)
  
  
      return layout
  
  def open_help_me(self, help_me):
      p = self.popup
  
      p = Popup(content=help_me,
                title='Help Me',
                size_hint=(0.8, 0.8))
  
          if p.content is not help_me:
              p.content = help_me
          p.open()
      else:
          super(HelpMeApp, self).display_helpme(HelpMe)
  </code></pre>
  
  <p>Every time I run the program it says popup not define or the application runs and shuts down immediately, can anyone tell me what I'm doing wrong. I'm new to programming.</p>