May-02-2022, 05:22 AM
Are you passing the arguments to
Also, a small thing: on line 37, you don't need the lambda. A lambda is just a function literal (in the same way as
insert
in the right order? The error message it telling you something about the arguments is wrong (the TclError
in the traceback). Did you check the docs for insert
?Also, a small thing: on line 37, you don't need the lambda. A lambda is just a function literal (in the same way as
"blue"
is a string literal) and all you're doing there is creating a function that takes no arguments and calls shake
. shake
is itself a function that takes no arguments, so you can just pass it as the command instead of wrapping it in another function (i.e. command=shake
).