[Tutor] unbound method function()
ryan luna
ryan_gm at sbcglobal.net
Wed Jul 12 20:06:16 CEST 2006
I have two Classes, I have a method in the first class (using Pygame/livewires moduls)
Class1(games.Sprite):
function1(self):
That is being called by the second class
Class2(games.Sprite):
function2(self):
Class1.function1()
When the code runs i get this error
"unbound method function() must be called with Class2 instance as first argument
(got nothing instead)"
Its weird (to me) b/c i have other methods calling methods from other classes just fine, but on this one method i get that error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060712/671a999a/attachment.htm
More information about the Tutor
mailing list