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: 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: References: From: Ian Kelly Date: Thu, 16 May 2013 11:53:47 -0600 Subject: Re: Fractal To: Python 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Thu, May 16, 2013 at 10:55 AM, Sharon COUKA 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('', zoom) c.bind('', unzoom) c.bind('', mouseMove)