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: 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> <544f4729$0$2399$426a74cc@news.free.fr> Date: Tue, 28 Oct 2014 18:51:21 +1100 Subject: Re: Callback functions arguments From: Chris Angelico Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Tue, Oct 28, 2014 at 6:35 PM, ast 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