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 pixels on
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
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
-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. Why the 2 lines differ on thickness
and length
- 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 turn
on many single pixels
- 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. But I want
to turn
on many single pixels
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
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