Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45440

Re: Fractal

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.040
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; '16,': 0.03; 'tkinter': 0.07; 'events.': 0.09; 'bind': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'code,': 0.22; 'looks': 0.24; 'url:edu': 0.26; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'besides': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'that.': 0.31; 'though.': 0.31; 'probably': 0.32; 'maybe': 0.34; 'something': 0.35; 'received:google.com': 0.35; 'sequence': 0.36; 'wrong': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'here': 0.66; 'url:help': 0.67; 'residents': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=tDslHI0fRIZpsYq0AQY4AapYG9LiBYbuKzB42fK2Ehk=; b=tzhh3scSeRD4U5/2R9VEObjwVY+NdyKLE1M4UlNohbCybnoQnUzFX6J/InMC3phrxi YGUlZ9ncQatB5KKDTjAGx5LG4GC/CdqP1Ydsvl4BCd7zz5O1L3bOIR3SZt/mnl9rWUn4 3SDaZdnvMLWnOy6PGeuE5JGa7LR61NpfEq9LX4TEunPtmXsJA+3uWGHi2va2AhhSxlFK aUT0rUMeGlRnw2ssEyGeEK5IC16P1N9qrGQDnBbIRcyLUtDqZtmuI71ytwewdouW/8oH kYFyfo3nx+ofaFyrZPws0RCG/0Tzz43lajGp843IevukSjhODJyc39YWfjRLakNoRx15 ovcA==
X-Received by 10.68.12.98 with SMTP id x2mr5553419pbb.92.1368726867379; Thu, 16 May 2013 10:54:27 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <DUB101-W288C9AB231A14B2A196F57EAA30@phx.gbl>
References <DUB406-EAS2733F3138D2284E49821C21EAA00@phx.gbl> <CALwzidmj9_tud-mdTv0CYKC+rhev0GgSwsi4cZhKZRFWwGRfYA@mail.gmail.com> <DUB403-EAS298981D0889EB4B31B2278CEAA30@phx.gbl> <CALwzidmkXcr-5=h_AZu-7S3ZEStu0Gb5CzoXYmVBirzwZ2Y2QA@mail.gmail.com> <DUB101-W288C9AB231A14B2A196F57EAA30@phx.gbl>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Thu, 16 May 2013 11:53:47 -0600
Subject Re: Fractal
To Python <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1767.1368726876.3114.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1368726876 news.xs4all.nl 15941 [2001:888:2000:d::a6]:35515
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:45440

Show key headers only | View raw


On Thu, May 16, 2013 at 10:55 AM, Sharon COUKA <sharon_couka@hotmail.com> wrote:
> # Register events
> c.bind('i', zoom)
> c.bind('i', unzoom)
> c.bind('i', mouseMove)

I'm not an expert at Tkinter so maybe one of the other residents can
help you better with that.  The code above looks wrong to me, though.
As far as I know, 'i' is not a valid event sequence in Tkinter, and
besides you probably want to bind these functions to three *different*
events.  See here for the docs on event sequences:

http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/event-sequences.html

Based on your code, it looks like you would probably want something like:

c.bind('<Button-1>', zoom)
c.bind('<Button-2>', unzoom)
c.bind('<Motion>', mouseMove)

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Fractal Ian Kelly <ian.g.kelly@gmail.com> - 2013-05-16 11:53 -0600

csiph-web