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


Groups > comp.lang.python > #45440 > unrolled thread

Re: Fractal

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2013-05-16 11:53 -0600
Last post2013-05-16 11:53 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#45440 — Re: Fractal

FromIan Kelly <ian.g.kelly@gmail.com>
Date2013-05-16 11:53 -0600
SubjectRe: Fractal
Message-ID<mailman.1767.1368726876.3114.python-list@python.org>
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)

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web