Добавление id к кнопки Kivy&Python

Добавил айди к кнопки в kivy. Но при запуске выдает ошибку.
Код:

from kivy.app import App
from kivy.uix.button import Button
from kivy.properties import ListProperty
from kivy.uix.gridlayout import GridLayout

class BoxApp(App):
    def build(self):
        bl = GridLayout(cols=7,padding=[50],spacing=10)
        check_box = [
        '#','#','#','#','#','#','#',
        '#',' ',' ',' ',' ',' ','#',
        '#',' ',' ',' ',' ',' ','#',
        '#',' ',' ',' ',' ',' ','#',
        '#',' ',' ',' ',' ',' ','#',
        '#','#','#','#','#','#','#',
        ]
        
        
        ge = 0
        for i in check_box:
            if i == '#':
                bl.add_widget(
                    Button(
                        id = '1',
                        text = 'button{0}'.format(ge)
                    )
                )
                ge +=1
            else:
                bl.add_widget(
                    Button(
                        text = '-'
                    )
                )
            
        return bl
if __name__ == '__main__':
    BoxApp().run()

Ошибка:

 Traceback (most recent call last):
   File "test.py", line 38, in <module>
     BoxApp().run()
   File "C:\Users\samael\AppData\Local\Programs\Python\Python38-32\lib\site-packages\kivy\app.py", line 949, in run
     self._run_prepare()
   File "C:\Users\samael\AppData\Local\Programs\Python\Python38-32\lib\site-packages\kivy\app.py", line 919, in _run_prepare
     root = self.build()
   File "test.py", line 23, in build
     Button(
   File "C:\Users\samael\AppData\Local\Programs\Python\Python38-32\lib\site-packages\kivy\uix\behaviors\button.py", line 121, in __init__
     super(ButtonBehavior, self).__init__(**kwargs)
   File "C:\Users\samael\AppData\Local\Programs\Python\Python38-32\lib\site-packages\kivy\uix\label.py", line 318, in __init__
     super(Label, self).__init__(**kwargs)
   File "C:\Users\samael\AppData\Local\Programs\Python\Python38-32\lib\site-packages\kivy\uix\widget.py", line 350, in __init__
     super(Widget, self).__init__(**kwargs)
   File "kivy\_event.pyx", line 245, in kivy._event.EventDispatcher.__init__
 TypeError: object.__init__() takes exactly one argument (the instance to initialize)


Ответы (0 шт):