tkinter 그림그리기
# 마우스 그림 def draw(event): global x0, y0 canvas.create_line(x0, y0, event.x, event.y) x0,y0 = event.x, event.y def down(event): global x0, y0 x0, y0 = event.x, event.y def up(event): global x0, y0 if (x0,y0)== (event.x, event.y): canvas.create_line(x0,y0, x0+1, y0+1) from tkinter import * import tkinter tk = tkinter window = tk.Tk() canvas = Canvas(window, width=300, height=300) canvas.bind("",dr..
2022. 8. 1.