Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'function,': 0.07; 'though.': 0.07; 'tkinter': 0.09; 'pm,': 0.10; 'wrote:': 0.14; 'bug?': 0.16; 'callback': 0.16; 'instantiates': 0.16; 'okay,': 0.16; 'throws': 0.16; 'thanks!': 0.16; 'guess': 0.19; 'header:In- Reply-To:1': 0.21; 'seems': 0.21; 'subject:problem': 0.22; 'clicked': 0.23; 'works.': 0.23; 'fri,': 0.23; 'received:209.85.161.46': 0.23; 'received:mail- fx0-f46.google.com': 0.23; 'worked': 0.24; 'received:209.85.161': 0.26; "i'm": 0.27; 'message-id:@mail.gmail.com': 0.28; 'anyway.': 0.29; 'class': 0.29; 'bit': 0.30; 'confused': 0.30; 'looks': 0.31; 'url:library': 0.31; 'to:addr:python-list': 0.33; 'list': 0.33; "i've": 0.33; '...': 0.34; '[1]': 0.34; 'received:google.com': 0.37; 'issue': 0.37; 'received:209.85': 0.37; '20,': 0.37; 'url:docs': 0.37; 'url:python': 0.38; 'problem.': 0.38; 'url:org': 0.38; 'docs': 0.38; 'subject:: ': 0.38; 'some': 0.38; 'doing': 0.39; 'should': 0.39; 'received:209': 0.39; 'got': 0.39; 'to:addr:python.org': 0.39; 'bring': 0.64; 'exhibiting': 0.67; 'subject:program': 0.67; 'luck.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=j2gU4KPP98CL9qoii0HZNKNFXYAVqXfuODF8/Huquc0=; b=m1qEKrtTqqz2zGNBMtk1nKmp/8HHSv6I/d5yWWCHomGseNbfcJfLzEUE2HvAfuJX4U r82ZMfwNAZvxxlQZUNyfFti8V7YFTxU3mqFOK2CKCyIZmAeDL3rtAtBpJnENxAIn5rrU jF1a0yed8Lj+pn8xBs8gxgA3/FKOuBE7cFXWo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=QSzZRCKSMw/O6QFMvmNcEFJkfLoJx31+RFFIUyma07lp6L0hxT+stI0XfKif3nws9f upKe38zPo0uOgdIDGbH+NcCoYIY2eMIzdpvGdXgn+0m25xl9zg92zzN6imoIh2rc2DTf LcE1SSiT5T9G83g5qjk1eCdAj5nhWf6P2maDM= MIME-Version: 1.0 In-Reply-To: <10f0acf7-b63b-4cf3-949b-5d0caba19fb0@z13g2000prk.googlegroups.com> References: <9f91909a-ce08-47dd-81d3-e7cf2edad3b6@h12g2000pro.googlegroups.com> <10f0acf7-b63b-4cf3-949b-5d0caba19fb0@z13g2000prk.googlegroups.com> From: Ian Kelly Date: Fri, 20 May 2011 16:33:40 -0600 Subject: Re: TK program problem To: Python Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 16 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305930866 news.xs4all.nl 49174 [::ffff:82.94.164.166]:47518 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5886 On Fri, May 20, 2011 at 4:12 PM, bvdp wrote: > Okay, this works. Great and thanks! Seems to me that the way I was > doing it should be alright ... and I've got some other programs > exhibiting the same problem. > > Before I go "fixing" the issue ... is this known or even a bug? The docs [1] say that a callback is a function, so I guess that if it worked before it was just luck. You should bring it up on the tkinter list and see what they have to say about it, though. I'm a bit confused about why you would want to use a class as a callback anyway. It looks like when the button is clicked it instantiates the class and then throws it away? [1] http://docs.python.org/library/tkinter.html#tk-option-data-types