Suppose you have things = [1.1, 3.14, "aloha"] uppercase = things[2].upper() print(uppercase)
First line initializes a collection (a list in particular) with some values Second line selects one element ( list[2] ) and the method 'upper' on that element Third line prints the value just calculated The code works as expected. Now, lets change the second line to uppercase = things.upper() Do you expect this to work ? Can you see how this change is related to the change in your problematic code ? On Tue, Jul 14, 2015 at 3:02 AM, Barack Brobama <[email protected]> wrote: > Perhaps you didn't understand. My problem is simple, I can't load a Tiled > (.tmx) file without getting the aforementioned error. > > Take test_tmx.py into consideration. All i did was comment out the > ['map0'] layer from the following line of code and I got the same error. > > test_layer = tiles.load('road-map.tmx')#['map0'] > > You can view my* test_tmx.p*y file here: http://pastie.org/10291463 > > > On Monday, July 13, 2015 at 4:32:32 PM UTC-7, Barack Brobama wrote: >> >> I'm having an issue with cocos2d-python importing my .tmx orthogonal >> Tiled map. >> >> I can successfully load ONE of the visible layers by doing something >> like, i.e.: >> >> map = cocos.tiles.load("map.tmx")['layer1'] >> >> >> But the error *'Resource' object has no attribute 'set_view'* is raised >> when I do this: >> >> map = cocos.tiles.load("map.tmx") >> >> >> I'm on Windows 7: Python 2.7.5 and using cocos2d-python version 0.6.3. >> > -- > You received this message because you are subscribed to the Google Groups > "cocos2d discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/cocos-discuss. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cocos-discuss. For more options, visit https://groups.google.com/d/optout.
