Show the answer response on GUI

This commit is contained in:
snsd0805 2020-06-29 20:17:40 +08:00
parent 5e387a4cd3
commit e9db9bc980

View File

@ -164,7 +164,16 @@ def receiveDraw(sock,screen):
time.sleep(0.5)
startFlag = True
return False
elif data == 'y':
pgStringVar = pygame.font.Font(None,80).render("CORRECT!!!",False,(255,0,0))# 文字物件
screen.blit(pgStringVar,(540,240))# draw font
pygame.display.update()
elif data == 'n':
pgStringVar = pygame.font.Font(None,80).render("WRONG!!!",False,(255,0,0))# 文字物件
screen.blit(pgStringVar,(100,450))# draw font
pygame.display.update()
#print(data)
else:
li = data.split('+') # 送來的座標可能一次有多個,規範以+隔開
for i in li:
if i!="":