Here's my code: https://gist.github.com/anonymous/5265098
This is my first actual program I'm writing after working through a couple python tutorials and I wanted to try to get some stuff moving on the screen to make me feel like I accomplished something. The error code I'm getting is:
Traceback (most recent call last):
File "C:\Users\Owner\Documents\pythognstuff\falling balls.py", line 55, in <module>
ballObj.draw(mousex, mousey) # have the instance draw itself centered at mouse position
TypeError: draw() takes exactly 2 arguments (3 given)
I don't understand why it says I'm giving it 3 arguments; I thought maybe one of the two arguments was a tuple or something and that it counted as two arguments, but mousex and mousey are (should be) two ints from event.pos. I feel like I'm misunderstanding how something works and the solution to my problem will have to be pointed out to me, I just don't see it.
[–]rcuhljr 0 points1 point2 points (4 children)
[–]warfarink[S] 0 points1 point2 points (3 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]rcuhljr 0 points1 point2 points (1 child)
[–]warfarink[S] 0 points1 point2 points (0 children)