Lines on a tkinter.Canvas
Gregory Ewing
greg.ewing at canterbury.ac.nz
Thu Jun 12 07:38:04 EDT 2014
Pedro Izecksohn wrote:
> The Canvas' method create_line turns on at least 2 pixels. But I want to turn
> on many single pixels on a Canvas.
You could try using a 1x1 rectangle instead.
However, be aware that either of these will use quite a
lot of memory per pixel. If you are drawing a very large
number of pixels, this could cause performance problems.
In that case, you might want to use a different approach,
such as creating an image and telling the canvas to display
the image.
--
Greg
More information about the Python-list
mailing list