How can I make a lot of buttons at dynamic in kv language?
<p>I want to make a lot of Buttons at dynamic in kv language.
But now I cannot......
I will show now source under this.</p>

<hr>

<pre><code>BoxLayout:
    orientation: 'vertical'
    pos: root.pos
    size: root.size

    GridLayout:
        rows: 2
        spacing: 5
        padding: 5

        Button:
            text: "X0"
            on_press: root.X(0)
        Button:
            text: "X1"
            on_press: root.X(1)
</code></pre>

<p>I want to make like under code</p>

<pre><code>BoxLayout:
    orientation: 'vertical'
    pos: root.pos
    size: root.size

    GridLayout:
        rows: 2
        spacing:5
        padding:5

        for i
            Button:
                text: "X#{i}"
                on_press: root.X(i)
</code></pre>

<p>How can I do?</p>