title: Kivy Popup Shows Background Widgets
body: <p>I am trying to use the popup widget in Kivy, but everytime I run the code, the popup just has 2 smaller versions of the widget on the main screen.</p>
  
  <p>This is my Python code (the .py file):</p>
  
  <pre><code>import kivy
  kivy.require('1.9.0')
  from kivy.app import App
  from kivy.uix.widget import Widget
  
  
  class Layout(Widget):
      pass
  
  
  class KivyTestApp(App):
      def build(self):
          return Layout()
  
  
  app = KivyTestApp()
  app.run()
  </code></pre>
  
  <p>and this is my Kivy code (the .kv file):</p>
  
  <pre><code>#: import Factory kivy.factory.Factory
  
  &lt;MyPopup@Popup&gt;:
      title: 'Test'
      size_hint: None, None
      size: 400, 400
  
  &lt;Layout&gt;:
      Button:
          id: but
          size: root.width, root.height
          background_normal: ''
          background_color: .5, .7, .9, 1
          text: 'Press me to open the popup'
          pos: 0, 0
          on_press: Factory.MyPopup().open()
  </code></pre>
  
  <p>This creates a window that looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/Lvz3G.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lvz3G.jpg" alt="enter image description here"></a></p>
  
  <p>And the popup looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/UaA6C.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UaA6C.jpg" alt="enter image description here"></a></p>
  
  <p>As you can see, I have added no content to the popup, yet Buttons still appear! If anyone could help me, that would be great, and thanks in advance!</p>