I have some lambda functions in a python tkinter GUI. When I run the program I get this error, but I'm not sure what it means.
_tkinter.TclError: bad option "-command": must be -column, -columnspan, -in, -ipadx, -ipady, -padx, -pady, -row, -rowspan, or -sticky
Here is my code containing the functions:
self.sendbutton = Button(self, text = "Send") self.sendbutton.grid(row = 2, column = 0, command = lambda: self.sendMessage()) def sendMessage(self): print "Your message was sent."