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


Groups > comp.lang.python > #79827

Re: Callback functions arguments

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.013
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'args': 0.07; 'arguments': 0.09; 'callback': 0.09; 'caller': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'ast': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'tk.': 0.16; 'wrote:': 0.18; "python's": 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'scale': 0.29; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; "they'll": 0.31; 'allows': 0.31; 'objects': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'whatever': 0.38; 'pm,': 0.38; 'called': 0.40; 'different': 0.65; 'design.': 0.68; 'designers': 0.74; 'presumably': 0.84; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=IITBzH3eGVh2RkypU/G6oLRFvz77K8F+HxDsNKWVCcQ=; b=PtbvGCKHUTpyYX6QHq2pepQxwDfRuOBQW/XV239mfRyaBoVJ89FMQVR0HfofioWa+1 jkO8+6IVzq8uTvPuY55IZlYBB+2rJLb40ph2VoQrv/sU9DHKwyQEvXx4B69dujIfwzsS 64+UUQUghshFBORT2rLV0tse59TdKQIoPXtoJ1sM72sIOVG2jmrQiYVsDYZGH5NUfl8b W4CSkXfOFh3/pV8eDUyjMIZb4bAPbBmEc+gk7TeOASK8vcXF7l54bQYxpB15pCgHVbxI LRibrsNtx2z9zkICFz70WUwP4L51ErIIA3G5wvkw/u63J9f6+rS83Tds6bAhfbeyd+PJ 2ugg==
MIME-Version 1.0
X-Received by 10.107.136.68 with SMTP id k65mr1764730iod.43.1414482681093; Tue, 28 Oct 2014 00:51:21 -0700 (PDT)
In-Reply-To <544f4729$0$2399$426a74cc@news.free.fr>
References <544dff5d$0$2073$426a74cc@news.free.fr> <mailman.15231.1414399974.18130.python-list@python.org> <544f4729$0$2399$426a74cc@news.free.fr>
Date Tue, 28 Oct 2014 18:51:21 +1100
Subject Re: Callback functions arguments
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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 <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.15254.1414482690.18130.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1414482690 news.xs4all.nl 2879 [2001:888:2000:d::a6]:54280
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:79827

Show key headers only | 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