DirectButton starts command

Hello!
Im working with panda for 10 days now and its getting better from day to day! ^^
But now I have a problem I couldnt solve.

I cannot setup a DirectButton with a command-function that has arguments. Every time I make something like:

b = DirectButton(text = ("OK", "click!", "rolling over", "disabled"),scale=.05,command=setText("Here is the Problem"))

the button is launched immediatly.
Is there any way to prevent panda from starting the button-command when it has arguments?

you cant pass the agruments the usual way with those direct* things. that’s what extraArgs exists for.
just do:

b = DirectButton(text = ("OK", "click!", "rolling over", "disabled"),scale=.05,command=setText extraArgs=[argument1, "maybe a string ", "or a 3rd argument "] )

the list with extraArgs just behave like the () after a function call.

Thomas, you made a typing error;)
Don’t forget a comma between setText and extraArgs:

b = DirectButton(text = ("OK", "click!", "rolling over", "disabled"),scale=.05,command=setText,extraArgs=[argument1, "maybe a string ", "or a 3rd argument "] )

terribly sorry… ^^…
tip to remember… dont post @panda forum when researching how to build your own steam-driven car =)