stuck with function args

I am using Panda3d 1.7.2 using python

#DialogeButton1 which calls Analyse1
    def DialogeButton1(self, ques):
        self.correct = 0
        self.easyButton = DirectButton(text = "xyz", command = self.Analyse1, scale = 0.08, text_fg=(1, 1, 1, 1), relief = None)


#Analyse1 
    def Analyse1(self):
        self.inst8 = addInstructions(0.60, "analysed")

the problem is that when i click on the button (which displays the text correctly), the function Analyse1 is not executed.

the error i get is "Analyse1() takes exactly 2 arguments (1 given)

Can someone pls help me ?

welcome to panda!

do you have another function named Analyse1 further down in your code that does use 2 arguments? cause that would effectively replace the first one.

oh and. please don’t post the same question on multiple boards. it wont get you more/faster answers, but instead makes keeping track of discussions a lot more difficult. you can still delete posts where no one answered yet. thx

thanks. it worked.

i forgot to name the next function as Analyse2.

also i’ve deleted the second post.