Pedro Izecksohn wrote:
Thank you Greg. Your second approach works and the script became:
That's not really what I meant; doing it that way,
you're still incurring the overhead of a tk canvas
object for each point that you draw. However, if
there are only 250 points or so, it might not matter.
- Original Message -
> From: Gregory Ewing
> To: python-list@python.org
> Cc:
> Sent: Thursday, June 12, 2014 8:38 AM
> Subject: Re: Lines on a tkinter.Canvas
>
> Pedro Izecksohn wrote:
>> The Canvas' method create_line turns on at least 2 pixels. B
- Original Message -
> From: Gregory Ewing
> To: python-list@python.org
> Sent: Thursday, June 12, 2014 8:38 AM
> Subject: Re: Lines on a tkinter.Canvas
>
> Pedro Izecksohn wrote:
>> The Canvas' method create_line turns on at least 2 pixels. But I want
To: python-list@python.org
> Sent: Thursday, June 12, 2014 4:02 AM
> Subject: Re: Lines on a tkinter.Canvas
>
> Pedro Izecksohn wrote:
>
>> The code available from:
>> http://izecksohn.com/pedro/python/canvas/testing.py
>> draws 2 horizontal lines on a Canvas.
On 6/12/2014 7:38 AM, Gregory Ewing wrote:
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
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
Pedro Izecksohn wrote:
> The code available from:
> http://izecksohn.com/pedro/python/canvas/testing.py
> draws 2 horizontal lines on a Canvas. Why the 2 lines differ on thickness
> and length?
>
> The Canvas' method create_line turns on at least 2 pixels. But I want to
> turn on many single pixe
The code available from:
http://izecksohn.com/pedro/python/canvas/testing.py
draws 2 horizontal lines on a Canvas. Why the 2 lines differ on thickness and
length?
The Canvas' method create_line turns on at least 2 pixels. But I want to turn
on many single pixels on a Canvas. How should I d