[Tutor] range() fractional increment

2009-03-30 Thread james carnell
1) I feel dumb for asking this. 2) I looked for 20 minutes and didn't find an answer Trying to make a drawLine function in a 2d array. example: x   row = 25 : col = 10 x   row = 26 : col = 10.3 x   row = 27 : col = 10.6 0x000   row = 28 : col = 11 0x000   row = 29 : col = 11.3 0x000  

[Tutor] How to only give the user so much time to enter response?

2009-03-15 Thread james carnell
Trying to use Timer in console based game that gives the user so much time to act. If they do not act then it just passes the turn back to the program to do the next thing. I have Python 2.5 and Windows XP. http://www.python.org/doc/2.5.2/lib/timer-objects.html def hello(): print "hello, wor