Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: Lines on a tkinter.Canvas Date: Thu, 12 Jun 2014 23:38:04 +1200 Lines: 15 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net RNhlIm9QYZSKXUpXCMT8pg0bvaqkTdAL01nY2JilUzvkzgzYiY Cancel-Lock: sha1:dqG8k+8laNzVLX0mHojxzITrGbY= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: Xref: csiph.com comp.lang.python:73216 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