Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'ignored': 0.07; 'lambda:': 0.09; 'pm,': 0.10; 'wrote:': 0.14; 'callbacks': 0.16; 'cc:addr :python-list': 0.17; 'header:In-Reply-To:1': 0.21; 'subject:problem': 0.22; 'cc:2**0': 0.22; 'fine': 0.22; 'cc:no real name:2**0': 0.23; 'fri,': 0.23; 'received:209.85.161.46': 0.23; 'received:mail-fx0-f46.google.com': 0.23; 'worked': 0.24; '(and': 0.25; 'accepting': 0.26; 'classes': 0.26; 'received:209.85.161': 0.26; "i'm": 0.27; 'work.': 0.28; 'message- id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.30; 'ordinary': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.37; '20,': 0.37; 'but': 0.38; 'menu': 0.38; 'subject:: ': 0.38; 'received:209': 0.39; 'perfectly': 0.65; 'subject:program': 0.67; '12:03': 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:cc:content-type; bh=V9VS4V+FHCvjPhuWzYG1dK9yTjW7BrXMYv2yImeix+0=; b=TOjQFRNB0XtEdQbXwTbcSECqaeMq/4S4yHUSXJcSt+jquuyJIFXA9cQDlqNfxYoIno 8djLO8OKPgRgt40o8IrSYyA6oqg18E6VVkEwa4EHQVmNRK43CemE8EEryd6XcG0h2y0L tiNFYTnk+ocrwr4bEQy2h4fZj2IYLKPRj0alk= 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 :cc:content-type; b=lolNRK2ysd0zfVDSXiw3UUs+euyO8D9y/GF7uLYvaPBBc9cY+OiPA3tFPQW8gOAgQ3 ZeEBCzRWDQQnzqCEm0TWa8MY0JhWf2PxsMnQ0FZrvqXff0QYBe6RxDqTCJt6OGa0juYC 7ssBCAn3aFtSoIlYXzW6qXx+Rh51XmmNXv9x4= MIME-Version: 1.0 In-Reply-To: <9f91909a-ce08-47dd-81d3-e7cf2edad3b6@h12g2000pro.googlegroups.com> References: <9f91909a-ce08-47dd-81d3-e7cf2edad3b6@h12g2000pro.googlegroups.com> From: Ian Kelly Date: Fri, 20 May 2011 13:20:17 -0600 Subject: Re: TK program problem To: bvdp Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org 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: 15 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305919249 news.xs4all.nl 49179 [::ffff:82.94.164.166]:57593 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5874 On Fri, May 20, 2011 at 12:03 PM, bvdp wrote: > All this is fine (and worked perfectly before my upgrade). The menu > items which are ordinary functions continue to work. BUT the callbacks > which are classes are just ignored when they are clicked. I'm not a tk user, but it sounds like it has regressed from accepting arbitrary callables as callbacks to accepting functions specifically. What happens if you replace: ("Favorites", selectFav), with: ("Favorites", lambda: selectFav()),