Kivy custom widget instanciated twice
<p>I'm trying to build a simple Kivy custom widget containing two sliders.
When the screen is rendered I get two pairs of sliders instead of one.</p>

<p>What am I doing wrong ?</p>

<p><strong>Main.kv:</strong></p>

<pre><code>ScreenManagement:
    MainScreen:

&lt;Button&gt;:
    size_hint: .2, .1
    font_size: 20

&lt;Mixer&gt;:
    orientation:'vertical'
    Slider:
        min:0
        max:127
        value:64
    Slider:
        min:0
        max:127
        value:100

&lt;MainScreen&gt;:
    name: "mainscreen"
    Mixer:
    FloatLayout:
        Button:
            text: "Exit"
            pos: root.width - self.width, 0
            on_release: app.stop()
</code></pre>

<p><strong>Main.py:</strong></p>

<pre><code>import kivy
kivy.require("1.9.1")

from kivy.app import App
from kivy.lang import Builder
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.uix.boxlayout import BoxLayout

class ScreenManagement(ScreenManager):
    pass

class Mixer(BoxLayout):
    pass

class MainScreen(Screen):
    pass

class MainApp(App):
    def build(self):
        return Builder.load_file("Main.kv")

if __name__ == "__main__":
    MainApp().run()
</code></pre>

<p>Thanks for your help !</p>

<p>You should rename the kv file to <code>main.kv</code>, and delete the explicit load of it in <code>build</code> method. It is going to load itself automatically. The bug is weird, maybe worth a ticket.</p>

python user-interface kivy