DirectButton command

myButton = DirectButton(parent = self.myframe, frameSize = (-0.5,5,-0.5,1), text = ‘Click’, pos = (0,0,0), command = self.myFunc)

How I send one parameter to myFunc through myButton command?
command = self.myFunc(‘1’) executes myFunc even if I don’t click the button

Use the argument extraArgs= and a list containing your arguments for the function.
Manual page, see the second entry under Keyword.

I was using args = [list]… :unamused: