May-02-2022, 11:09 PM
(May-02-2022, 05:22 AM)ndc85430 Wrote: Are you passing the arguments toinsert
in the right order? The error message it telling you something about the arguments is wrong (theTclError
in the traceback). Did you check the docs forinsert
?
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 callsshake
.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
).
Thank you for your help! I'm not too sure if it was the order of anything, I'll have to toy around with it. The lambda thing I was still confused about, but I think I understand now. Thank you!