python - Pygame text not updating -
the following code being looped - in loop - when 'inputstr' changes, display not. printing inputstr yields expected results, though.
deffnt = pygame.font.font("cp437.ttf", 72) txttorndr = deffnt.render(inputstr,false, (0,0,0)) disp.blit(txttorndr, (100,300))
download link; http://www.mediafire.com/download/a4hp9wgojxgiao9/functgroup.rar
if print inputstr
right before rendered prints bit stops, meaning isnt getting rendered after point, think because condition:
if (16-len(gnots))>0:
it must coming out false therefore code render new text isnt being executed:
if print gnots
after condition, prints until length 16 items stops change number 16 in condition 1000 test try typing , text changes
Comments
Post a Comment