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


Groups > comp.lang.python > #75946

Re: Tkinter frame reset

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin1!goblin.stu.neva.ru!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <vlastimil.brom@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.134
X-Spam-Level *
X-Spam-Evidence '*H*': 0.73; '*S*': 0.00; 'subject:reset': 0.07; 'subject:Tkinter': 0.16; 'variables,': 0.16; 'appropriate': 0.16; 'separate': 0.22; "haven't": 0.24; 'push': 0.26; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'label': 0.30; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'open': 0.33; 'url:python': 0.33; 'maybe': 0.34; 'could': 0.34; 'basic': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'doing': 0.36; 'hi,': 0.36; 'url:org': 0.36; 'list': 0.37; 'project': 0.37; 'clear': 0.37; 'being': 0.38; 'button': 0.38; 'to:addr:python-list': 0.38; 'little': 0.38; 'anything': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'how': 0.40; 'solve': 0.60; 'numbers': 0.61; 'first': 0.61; 'back': 0.62; 'more': 0.64; 'url:htm': 0.73
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=UqwYX0t5RLKQFLjzHJwMpo5T79r2WjuUV7KNTozRl6A=; b=mQ1RXBYh09RcKinufaq0goBpES4CttqsjAK5uybr7K28jnn4PzeUgUDbrXOK6YO5/m 0tm9QF64KhM4U/iy+uHe+Rm6FxKqbHpM9ThjjauYCoNUcDnVy8f933aSZiW/blNk0scs Wdpj8hI+XmVwGndqG3XAf6lGKI9oUJgF5rIOxDd3kf7nIFRn00cFNuBDkCdlfAeGH5kW ZvX1RzjyRIGUrrsefNoyqJkQ7txwPn7GtsTHbMdjK3Nlu1ESXqpCoPzYhNnyUCx0aONs Aerp4+0IQcYyzmcmphpURk1TBB3+b/FX+gOCAMVKdrXpFUhpu5E2bjZxSJwQ/cF3DG+Q +ofw==
MIME-Version 1.0
X-Received by 10.182.114.169 with SMTP id jh9mr36824803obb.25.1407588361590; Sat, 09 Aug 2014 05:46:01 -0700 (PDT)
In-Reply-To <c9b244b6-12ca-485b-96e3-a8bd372d23f5@googlegroups.com>
References <c9b244b6-12ca-485b-96e3-a8bd372d23f5@googlegroups.com>
Date Sat, 9 Aug 2014 14:46:01 +0200
Subject Re: Tkinter frame reset
From Vlastimil Brom <vlastimil.brom@gmail.com>
To python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.12793.1407588364.18130.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1407588364 news.xs4all.nl 2841 [2001:888:2000:d::a6]:35400
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:75946

Show key headers only | View raw


2014-08-09 2:38 GMT+02:00 Nicholas Cannon <nicholascannon1@gmail.com>:
> Ok so I am working on a little project and I cant seem to solve something with it. I have a label and then a clear button and I want all the numbers in the label to clear when I push the button. This button is on a separate frame to the buttons. I would like to clear the frame and then set all the widgits back to how they were one you first open the app(Label being blank).
...
> --
> https://mail.python.org/mailman/listinfo/python-list

Hi,
I haven't been doing anything more complex for some time now with
tkinter, but could you maybe just associate the appropriate variables,
keep them in a list and change the values in a loop as appropriate -
without recreating the gui?
cf. the basic recipe:
http://effbot.org/tkinterbook/label.htm
v = StringVar()
Label(master, textvariable=v).pack()
v.set("New Text!")
hth,
  vbr

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


Thread

Tkinter frame reset Nicholas Cannon <nicholascannon1@gmail.com> - 2014-08-08 17:38 -0700
  Re: Tkinter frame reset Vlastimil Brom <vlastimil.brom@gmail.com> - 2014-08-09 14:46 +0200

csiph-web