I do have def indented and stuff srry about that, but i dont think thats wrong now i believe it might be, tk.update ball = Ball(canvas, 'red') the error says Traceback (most recent call last): File (my file's name), line 38, in <module> ball = Ball(canvas, 'red') TypeError: object._new_() takes no p...
Hi,
I have written a simple paddleball game with python but then this error happened.
TypeError: Object._new_() takes no parameters
this is the part i believe is wrong,
class Ball:
def _init_(self, canvas, color):
self.canvas = canvas