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