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


Groups > comp.lang.python > #5886

Re: TK program problem

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 <ian.g.kelly@gmail.com>
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> <mailman.1857.1305919249.9059.python-list@python.org> <10f0acf7-b63b-4cf3-949b-5d0caba19fb0@z13g2000prk.googlegroups.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Fri, 20 May 2011 16:33:40 -0600
Subject Re: TK program problem
To Python <python-list@python.org>
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 <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.1864.1305930866.9059.python-list@python.org> (permalink)
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

Show key headers only | View raw


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

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