jj = 43
scdj = []
for wg in range(3):
scndj = loader.loadModel(“ych_dev/sfloor/wall/w1”)
scndjtxt = loader.loadTexture(“ych_dev/sfloor/wall/w01.png”)
scndj.setTexture(scndjtxt)
scndj.reparentTo(render)
scndj.setScale(2,2,2)
scndj.setPos(3.25,jj,-200)
scndj.setHpr(90,0,0)
jj = jj - 6.5
scdj.append(scndj)
do u see any error here?
it says error in line 190, and points out “scdj = []” has error.
but that line is not 190, whats the real problem?
they are well indent, i just cant make indent in this post.
Are you sure the indentation is correct? In particular, if you are using tab characters and spaces interchangeably, sometimes what looks correct to you doesn’t look correct to Python.
thanks fr helping,
phew! took me alot of time to tab them into indented and took me alot of another time to check it. finally i found out when i was to delete a tab space, i pressed two or three times of del key to delete one tab space.
you got any suggestions on how to manage the tab thing a shorter time?
coz when the codes are too long, this python snake will sure swallows me into his mazed intestine.
I find idle to be sufficient for all my juicing needs. The best part is that it’s included as one of the standard python libraries, so you can get to it in Panda using the following method:
ppython -i
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from idlelib import idle
IDLE is a good baseline editor, though most other editors have a lot more features.