[UPDATE] fct Returne
This commit is contained in:
parent
0250f65c6f
commit
5792f214a7
11
start.py
11
start.py
@ -19,6 +19,13 @@ sys.path.append( './modules/')
|
||||
from arrow import *
|
||||
|
||||
|
||||
def EnterEmu():
|
||||
global cpt
|
||||
runMcpt = cpt + 1
|
||||
if runMcpt > EmuCpt:
|
||||
runMcpt = 0
|
||||
print("Emu : " + str(res[runMcpt]))
|
||||
|
||||
def ViewEmu(cL,xL,yL,cM,xM,yM,cR,xR,yR):
|
||||
NfL="./data/emu/media/" + res[cL] + ".png"
|
||||
NfM="./data/emu/media/" + res[cM] + ".png"
|
||||
@ -44,7 +51,7 @@ def ViewEmu(cL,xL,yL,cM,xM,yM,cR,xR,yR):
|
||||
Cnv.create_image(xL, yL, image=PNfL)
|
||||
Cnv.create_image(xM, yM, image=PNfM)
|
||||
Cnv.create_image(xR, yR, image=PNfR)
|
||||
print("Emu : " + str(res[cM]))
|
||||
print("Curent Emu : " + str(res[cM]))
|
||||
|
||||
|
||||
#
|
||||
@ -69,7 +76,6 @@ def leftKey():
|
||||
ViewEmu(Lcpt,LeftSquareX, LeftSquareY,Mcpt,MiddleSquareX, MiddleSquareY,Rcpt,RightSquareX, RightSquareY)
|
||||
|
||||
def rightKey():
|
||||
global cpt
|
||||
global cpt
|
||||
cpt = cpt + 1
|
||||
if cpt > EmuCpt:
|
||||
@ -173,6 +179,7 @@ ViewEmu(cpt,LeftSquareX, LeftSquareY,cpt+1,MiddleSquareX, MiddleSquareY,cpt+2,Ri
|
||||
|
||||
arkadeus.bind("<Left>", lambda event: leftKey())
|
||||
arkadeus.bind("<Right>", lambda event: rightKey())
|
||||
arkadeus.bind("<Return>", lambda event: EnterEmu())
|
||||
|
||||
arkadeus.bind('<Escape>',Escape)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user