Hi everyone I am a beginner and I need to design a 3D world editor in python, I found a great code to start off here:
http://vpython.org/contents/contributed/chessboard.py
I tried to add an infinite while loop at the end of the code repeatingly asking for positions to check if it would move pieces in real time. I made sure that I have an exit to this loop when I type "quit".
run = True
while run:
posi = raw_input("Input move: ")
if posi == 'quit':
run = False
else:
#this is the function that moves a piece. See chessboard.py
thisBoard.parseString(posi)
The thing is that I can move pieces around and it works but nothing is displayed in my 3D window until I exit the while loop.
My question is how do I keep the while loop running while still refreshing my 3D board in real time?
I'm not especially asking for a straight answer but if anyone could tell me where to start looking for it?
Thanks in advance