IDLE를 시작하면 스크립트모드(한줄씩 실행)아닌 New File> 대화형 모드로 코드 작성! from tkinter import* #변수선언 window = None canvas = None x1,y1,x2,y2 = None,None,None,None #선의 시작과 끝 #함수 def mouseClick(event): global x1,y1,x2,y2 x1= event.x y1=event.y def mouseDrop(event): global x1,y1,x2,y2 x2=event.x y2=event.y canvas.create_line(x1,y1,x2,y2,width=5,fill="red") #메인 코드 window = Tk() window.title("그림판 비슷한 프로그램") canvas = Canv..