On Fri, Mar 27, 2009 at 5:35 AM, David <[email protected]> wrote: > > Hi everybody, > class KeyDisplay(cocos.layer.Layer): > .... > def__init__(self): > super( KeyDisplay, self).__init__() > self.text = cocos.text.Label(...) > ... > > My question is: where does KeyDisplay.text come from? It is clearly a > property of KeyDisplay, and I can see that it's a label, but where is > it defined?
Its defined right there, on the __init__ method of keydisplay. Python is a dynamic language. Lucio. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
