Debashish Saha wrote:

TypeError: grid_source() takes exactly 3 arguments (4 given)


Is this error not clear enough? The function expects 3 arguments, you have given it 4. You need to give one fewer.

The only tricky thing to remember is that when you have a method, one argument is the automatically provided "self" argument:

function(a, b, c, d)  # This is FOUR arguments.

instance.method(a, b, c)  # So is this, because there is also a "self" arg.



--
Steven

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to