2004-04-19, 00:49
hi,
i've finally started tinkering with python. thanks to all the helpful people on this and the xbox-scene forums, it was pretty easy to take it up.
a small question though: how do i check against an 'action' sent to my window? i know i can change the onaction method, but i would like to check for a specific action while i'm in a loop of my own (and not via the domodal() method). ie:
what should the while statement look like?
i've finally started tinkering with python. thanks to all the helpful people on this and the xbox-scene forums, it was pretty easy to take it up.
a small question though: how do i check against an 'action' sent to my window? i know i can change the onaction method, but i would like to check for a specific action while i'm in a loop of my own (and not via the domodal() method). ie:
Quote:window.show()
while (action<>action_shutdown):
output('still running!')
window.close
del window
what should the while statement look like?