Re: Lines on a tkinter.Canvas

2014-06-12 Thread Peter Otten
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

Re: Lines on a tkinter.Canvas

2014-06-12 Thread Gregory Ewing
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

Re: Lines on a tkinter.Canvas

2014-06-12 Thread Terry Reedy
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

Re: Lines on a tkinter.Canvas

2014-06-12 Thread Pedro Izecksohn
-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

Re: Lines on a tkinter.Canvas

2014-06-12 Thread Pedro Izecksohn
- 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

Re: Lines on a tkinter.Canvas

2014-06-12 Thread Pedro Izecksohn
- 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

Re: Lines on a tkinter.Canvas

2014-06-12 Thread Gregory Ewing
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

Lines on a tkinter.Canvas

2014-06-11 Thread Pedro Izecksohn
  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