Go to advanced search

by Programmer218
Mon Mar 04, 2013 10:12 pm
Forum: General programming discussion
Topic: Python IDLE TypeError Object._new_() takes no parameters
Replies: 6
Views: 3094

Re: Python IDLE TypeError Object._new_() takes no parameters

Yes im sure, I have tried it on all three, 1, 2, and 3. :?:
by Programmer218
Sun Mar 03, 2013 4:35 pm
Forum: General programming discussion
Topic: Python IDLE TypeError Object._new_() takes no parameters
Replies: 6
Views: 3094

Re: Python IDLE TypeError Object._new_() takes no parameters

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...
by Programmer218
Sun Mar 03, 2013 4:20 am
Forum: General programming discussion
Topic: Python IDLE TypeError Object._new_() takes no parameters
Replies: 6
Views: 3094

Python IDLE TypeError Object._new_() takes no parameters

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

please help.

Go to advanced search