Add draw line

This commit is contained in:
justuser31 2023-04-21 17:19:58 +03:00
parent 10dab6a7f5
commit f87c84db30

View File

@ -63,7 +63,8 @@ class PixelArt:
for i in range(129):
self.canvas.create_line(i*12, 0, i*12, 128*12, fill="white")
self.canvas.create_line(0, i*12, 128*12, i*12, fill="white")
self.canvas.bind("<Button-1>", self.draw_pixel)
#self.canvas.bind("<Button-1>", self.draw_pixel)
self.canvas.bind("<B1-Motion>", self.draw_pixel)
def draw_pixel(self, event):
x = int(event.x / 12)