Tclerror: Wrong # Args Error
I have no idea what is wrong but I keep getting this Exception in Tkinter callback Traceback (most recent call last): File '/Library/Frameworks/Python.framework/Versions/7.3
Solution 1:
Almost the only way to get the error you say you get with the code you posted, is if the insert
method is called when the data to insert is None
. message
comes from the result of per
, but per
returns None
because you don't explicitly return anything else.
One of the first things to try when trying to debug is to check that the data you're sending to the failing function is what you think it is. You can do this in a very low-tech way by simply printing out the values being passed to the insert
message. This instantly told me that message
was None
. Once I learned that, it's pretty simple to answer the question "why was it None?".
Post a Comment for "Tclerror: Wrong # Args Error"