Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73240
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <izecksohn@yahoo.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.035 |
| X-Spam-Evidence | '*H*': 0.93; '*S*': 0.00; 'yet.': 0.04; 'canvas': 0.07; 'diff': 0.07; 'canvas.': 0.09; 'pixels': 0.09; 'subject:skip:t 10': 0.09; 'received:66.196': 0.16; 'subject:Lines': 0.16; 'thursday,': 0.16; 'wrote:': 0.18; 'drawing': 0.19; 'skip:p 40': 0.19; 'memory': 0.22; 'to:name :python-list@python.org': 0.22; 'creating': 0.23; 'instead.': 0.24; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'lines': 0.31; 'quite': 0.32; '-----': 0.33; 'could': 0.34; 'received:66': 0.35; 'display': 0.35; 'case,': 0.35; 'but': 0.35; 'method': 0.36; 'turn': 0.37; 'email addr:python.org': 0.37; 'performance': 0.37; 'to:addr:python-list': 0.38; 'subject:': 0.39; '12,': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'problems.': 0.60; 'received:bf1.yahoo.com': 0.60; 'received:mail.bf1.yahoo.com': 0.60; 're:': 0.63; 'such': 0.63; 'telling': 0.64; 'different': 0.65; 'email name:python-list': 0.65; 'header:Reply-To:1': 0.67; 'received:98.139.212': 0.68; 'received:bullet.mail.bf1.yahoo.com': 0.74; 'received:98.139.213': 0.91 |
| X-Yahoo-Newman-Property | ymail-3 |
| X-Yahoo-Newman-Id | 383443.79236.bm@omp1004.mail.bf1.yahoo.com |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1402605215; bh=qaKr2VuRrVJowQjLJ4kIinQjO1MIbL7SAL3xY0vanZg=; h=References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=MWFUCA8HsmtYsVB/0vtwPtW85KmrGEeDj3weK/f/fgWeVGAg+7v61SCBscOqUJxujJm2R4XrGTq91clQuHwXYXaPAna1MGdttlfiTjbiG/nYC0tpZqWEaByoHWI2MZ6g+M+nRxspboOBbZCT/hR6kHPCeaHHdU6ENFDA9EWk+gU= |
| X-YMail-OSG | w9gb6BYVM1nnKhGGHfs9spNXgHCrE8t_JFZ9tLg2uyOn.yy dbyUsJsP708Sn4aPpCQCquszDJ90s0r4m065FDP7m4LGDgfca8hely1MaLA. d3bG5spfH2hTDq5HEjA0zQoKZkHgrAh0ajs9.QQuTix6aXwaKMMx204mcdkc 35NW4a6M2p6dlb.gP7jst597V07ONr_P23baQhHHgRbhcXbxjtGjx7.Pbsam AvySQRmYIjHpTkWTeUFqdPrtg.o6vn.PI.9nOk5BWfL34r723bi9SrCUZojA 0JpO.B8.nKTMzuyTvilhcm5alY41T_Fh7URZS.AsP7oi4E4wQz12gGUCMS2E EHVsN9v9m.mBCHddadugwdOlX31ZM6_oPkZZ4hYZz_WdJV6biHyOPR42bc9D oXn1NuCAx.XYeGyqoV10vL6R7RXJ_JnYLGSUqWbI6RHOtbuRfuK7O2vU7b5I g1p.rN3J6hoLkfl1.Tsp17o2YevDAUrDNh274c0BD0sL4YuRwvx_Rgfw9FTf Ub23EmsAjlw6epl7_iDVxsMTWqKqw2xLoJh7K2yUsI1n2EbjXxHIkPRi5G.J Dpf03VcUg.FFDET9m32A4pmcMDLAuYZqQOPGZPZJbtAtjjopz3TRZD8HO46y JwchVI_9rRCrseiv0BKRpz9o- |
| X-Rocket-MIMEInfo | 002.001, LS0tLS0gT3JpZ2luYWwgTWVzc2FnZSAtLS0tLQoKPiBGcm9tOiBHcmVnb3J5IEV3aW5nCj4gVG86IHB5dGhvbi1saXN0QHB5dGhvbi5vcmcKPiBTZW50OiBUaHVyc2RheSwgSnVuZSAxMiwgMjAxNCA4OjM4IEFNCj4gU3ViamVjdDogUmU6IExpbmVzIG9uIGEgdGtpbnRlci5DYW52YXMKPiAKPiBQZWRybyBJemVja3NvaG4gd3JvdGU6Cj4.ICBUaGUgQ2FudmFzJyBtZXRob2QgY3JlYXRlX2xpbmUgdHVybnMgb24gYXQgbGVhc3QgMiBwaXhlbHMuIEJ1dCBJIHdhbnQgCj4gdG8gdHVybgo.PiAgb24gbWFueSBzaW4BMAEBAQE- |
| X-Mailer | YahooMailWebService/0.8.190.668 |
| References | <mailman.11027.1402548495.18130.python-list@python.org> <bvthovFg8ldU1@mid.individual.net> |
| Date | Thu, 12 Jun 2014 13:33:35 -0700 (PDT) |
| From | Pedro Izecksohn <izecksohn@yahoo.com> |
| Subject | Re: Lines on a tkinter.Canvas |
| To | Gregory Ewing <greg.ewing@canterbury.ac.nz>, "python-list@python.org" <python-list@python.org> |
| In-Reply-To | <bvthovFg8ldU1@mid.individual.net> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| X-Mailman-Approved-At | Fri, 13 Jun 2014 00:34:01 +0200 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | Pedro Izecksohn <izecksohn@yahoo.com> |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11044.1402612443.18130.python-list@python.org> (permalink) |
| Lines | 15 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1402612443 news.xs4all.nl 2845 [2001:888:2000:d::a6]:43516 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:73240 |
Show key headers only | View raw
----- 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 on a Canvas. > > You could try using a 1x1 rectangle instead. pedro@microboard:~/programming/python/tk/canvas$ diff old/testing.001.py testing.py 19c19 < self.canvas.create_line (p.x, p.y, p.x, p.y, fill = color) --- > self.canvas.create_rectangle (p.x, p.y, p.x, p.y, fill = color) The result that I got is: The line drawn by it is not shown. > 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. I did not try this yet.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Lines on a tkinter.Canvas Pedro Izecksohn <izecksohn@yahoo.com> - 2014-06-11 18:57 -0700
Re: Lines on a tkinter.Canvas Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-06-12 23:38 +1200
Re: Lines on a tkinter.Canvas Terry Reedy <tjreedy@udel.edu> - 2014-06-12 13:44 -0400
Re: Lines on a tkinter.Canvas Pedro Izecksohn <izecksohn@yahoo.com> - 2014-06-12 13:33 -0700
Re: Lines on a tkinter.Canvas Pedro Izecksohn <izecksohn@yahoo.com> - 2014-06-12 16:11 -0700
Re: Lines on a tkinter.Canvas Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-06-13 12:31 +1200
csiph-web