You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
이벤트 함수 안에 값을 다른 변수에 저장하고 싶어요( I want to save the value to another variable inside the event function.) #1162
이벤트 함수 안에 있는 글로벌 변수안의 값을 함수 밖의 또다른 변수에 저장하고 싶어요.
I want to save the value in the global variable inside the event function to another variable outside the function.
코드 혹은 오류
여기에 코드를 적어주세요.
def coordinate(event):
fx = event.x
fy = event.y
global sx
global sy
sx = fx
sy = fy
print (sx,sy)
return sx,sy
Activity