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


Groups > comp.lang.python > #79827

Re: Callback functions arguments

References <544dff5d$0$2073$426a74cc@news.free.fr> <mailman.15231.1414399974.18130.python-list@python.org> <544f4729$0$2399$426a74cc@news.free.fr>
Date 2014-10-28 18:51 +1100
Subject Re: Callback functions arguments
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.15254.1414482690.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Oct 28, 2014 at 6:35 PM, ast <nomail@invalid.com> wrote:
> OK, but i still find very strange the choice of Python's designers to
> make the Scale behaves like that.

That's nothing to do with Python's design. That's all about Tkinter,
which presumably is imitating Tk. Python allows the callback function
to be called with whatever arguments the caller wishes; you can look
at the docs for the different objects to see what args they'll be
giving their callbacks.

ChrisA

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


Thread

Callback functions arguments "ast" <nomail@invalid.com> - 2014-10-27 09:16 +0100
  Re: Callback functions arguments Peter Otten <__peter__@web.de> - 2014-10-27 09:52 +0100
    Re: Callback functions arguments "ast" <nomail@invalid.com> - 2014-10-28 08:35 +0100
      Re: Callback functions arguments Chris Angelico <rosuav@gmail.com> - 2014-10-28 18:51 +1100
        Re: Callback functions arguments "ast" <nomail@invalid.com> - 2014-10-28 12:14 +0100

csiph-web