I tried to add instance after the self, but still not working
this is the error message
File "kivy\_event.pyx", line 703, in kivy._event.EventDispatcher.dispatch
File "kivy\_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
File "kivy\_event.pyx", line 1138, in kivy._event.EventObservers._dispatch
TypeError: sss() takes 1 positional argument but 2 were given
here is the full kivy python code
import kivy
from kivy.uix.widget import Widget
from kivy.properties import ObjectProperty
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.gridlayout import GridLayout
from kivy.uix.textinput import TextInput
from kivy.uix.button import Button
from kivy.uix.screenmanager import ScreenManager, Screen
class Touch(Widget):
def __init__(self, **kwargs):
super(Touch, self).__init__(**kwargs)
self.cols = 1
self.Rc1 = Button(text="Submit", font_size=40)
self.Rc1.bind(on_press=self.sss)
self.add_widget(self.Rc1)
def sss(self):
self.Rc1 = Button(text="Push Me !",
font_size="20sp",
background_color=[1, 0, 0, 1],
color=(1, 1, 1, 1),
size=(32, 32),
size_hint=(.2, .2),
pos=(300, 250))
class MyApp(App):
def build(self):
return Touch()
if __name__ == "__main__":
MyApp().run()

,*argsto the args list ofsss(). - John Andersonself.Rc1to access existing button and change its values - probablyself.Rc1.color = ...- furas