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


Groups > comp.lang.python > #5874

Re: TK program problem

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 <ian.g.kelly@gmail.com>
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 <ian.g.kelly@gmail.com>
Date Fri, 20 May 2011 13:20:17 -0600
Subject Re: TK program problem
To bvdp <bob@mellowood.ca>
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 <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1857.1305919249.9059.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Fri, May 20, 2011 at 12:03 PM, bvdp <bob@mellowood.ca> 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()),

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


Thread

TK program problem bvdp <bob@mellowood.ca> - 2011-05-20 11:03 -0700
  Re: TK program problem Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-20 13:20 -0600
    Re: TK program problem bvdp <bob@mellowood.ca> - 2011-05-20 15:12 -0700
      Re: TK program problem Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-20 16:33 -0600
        Re: TK program problem bvdp <bob@mellowood.ca> - 2011-05-20 16:07 -0700
          Re: TK program problem Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-20 17:29 -0600
            Re: TK program problem bvdp <bob@mellowood.ca> - 2011-05-20 16:34 -0700
          Re: TK program problem rantingrick <rantingrick@gmail.com> - 2011-05-20 16:37 -0700
            Re: TK program problem bvdp <bob@mellowood.ca> - 2011-05-21 17:07 -0700
  Re: TK program problem Peter Otten <__peter__@web.de> - 2011-05-21 10:18 +0200
    Re: TK program problem bvdp <bob@mellowood.ca> - 2011-05-21 17:03 -0700
      Re: TK program problem Terry Reedy <tjreedy@udel.edu> - 2011-05-21 20:33 -0400
        Re: TK program problem bvdp <bob@mellowood.ca> - 2011-05-21 19:20 -0700
          Re: TK program problem Terry Reedy <tjreedy@udel.edu> - 2011-05-22 17:17 -0400
      Re: TK program problem rantingrick <rantingrick@gmail.com> - 2011-05-22 07:03 -0700
        Re: TK program problem Chris Angelico <rosuav@gmail.com> - 2011-05-23 00:25 +1000

csiph-web