Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'example:': 0.03; 'diff': 0.05; 'tkinter': 0.07; '"python': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:simple': 0.16; 'text?': 0.16; 'wrote:': 0.17; 'url:view': 0.18; 'all,': 0.21; 'supposed': 0.21; 'programming': 0.23; 'absolute': 0.23; "i've": 0.23; 'second': 0.24; 'header:In-Reply-To:1': 0.25; 'looks': 0.26; 'am,': 0.27; 'language.': 0.27; 'message-id:@mail.gmail.com': 0.27; "i'm": 0.29; 'error': 0.30; 'code': 0.31; 'getting': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'wrong': 0.34; 'done': 0.34; 'same.': 0.35; 'doing': 0.35; 'received:209.85.220': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'page': 0.38; 'to:addr:python.org': 0.39; 'little': 0.39; 'application': 0.40; 'most': 0.61; 'first': 0.61; 'more': 0.63; 'become': 0.65; 'subject:this': 0.84; '2013': 0.84; 'acquainted': 0.84; 'book:': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=TZs+eUBimAt1MrxT9tqj5/qLxTQFCvvfmJsboMYxL5s=; b=YutPvhVVGbdaMSVPdAHBf2GsHGQy4QyHaxOKCtS07tsRMdwaByPPJBcckMhj/RvL2q CPodVbymn+fFcJ0o8QvZkp5CC82KIIuwB+ncj0as2fe5lD8I0JeVd4teGIqVhSQI6Uhh WMNPSxLdw3mdZxBRI7XiC1x+8TiKiqnqJd0FMBr9hvCR/WZUS1w//sPM4n2TncXMtE7O 5yv8sTk3Fo9EXfrbesqN2WJ3QrmHe/isyqJPENgoa6aTz43EJEso3fE5bv89qSrx14MO j89Sfzc0bzWh42OOkBGklO9dnfpXo6hq3M1/XTtm4toJEOmH3K0yO9zpC8FwAKvWr9jx T3RA== MIME-Version: 1.0 X-Received: by 10.52.67.164 with SMTP id o4mr10201421vdt.42.1363446505033; Sat, 16 Mar 2013 08:08:25 -0700 (PDT) In-Reply-To: References: Date: Sun, 17 Mar 2013 02:08:24 +1100 Subject: Re: What am I doing wrong in this simple tkinter example? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363446513 news.xs4all.nl 6893 [2001:888:2000:d::a6]:39757 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41311 On Sun, Mar 17, 2013 at 1:53 AM, Yves S. Garret wrote: > Hi all, I'm well into "Python Programming for the Absolute Beginner" in order to > become more acquainted with the language. However, when I got to page 304 and > did my first example: > > http://bin.cakephp.org/view/1107093008 > > And this is the error that I'm getting: > > http://bin.cakephp.org/view/399711843 > > This is the code that came with the book: > > http://bin.cakephp.org/view/514822432 > > > What I don't understand is, why am I getting that error? I've done diff -w > and the code looks for the most part the same. What am I doing wrong when I > put the application together? self.secret_txt.delete(0.0, END) self.secret_txt.delete(0.0, message) Is the second one supposed to be adding text? I'm not familiar with tkinter but that's the line with the error, and it looks a little odd. ChrisA