Hello!
I'm a begginer at Python and I'm having some problems with my code.
Can someone try and help me figuring out what is the problem??
I'm getting an error message in the command line:
"IndentationErr or: expected an idented block"
with reference to the "if" line.
But when I change the order of the lines, the error messege remain one line after the "evaluate" line so I think it might be the origin.
Plus, there are little red dots before the if line...
Lots of thanks!!
May.
I'm a begginer at Python and I'm having some problems with my code.
Can someone try and help me figuring out what is the problem??
Code:
class EndTrial(Dependent(SFBool)):
def __init__(self):
SFBool.__init__(self)
def evaluate(self, input):
if KS.actionKeyRelease==17:
write_file.write()
experimentHandle.ftime.close()
experimentHandle.fposition.close()
experimentHandle.fforce.close()
experimentHandle.screen=2
SCREEN.whichChoice.set(2)
QuitAPI()
"IndentationErr or: expected an idented block"
with reference to the "if" line.
But when I change the order of the lines, the error messege remain one line after the "evaluate" line so I think it might be the origin.
Plus, there are little red dots before the if line...
Lots of thanks!!
May.
Comment