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


Groups > comp.lang.python > #106797

Re: Change Windows Tkinter after some time

From Terry Reedy <tjreedy@udel.edu>
Newsgroups comp.lang.python
Subject Re: Change Windows Tkinter after some time
Date 2016-04-10 15:13 -0400
Message-ID <mailman.12.1460315642.6211.python-list@python.org> (permalink)
References <1a13aefe-c66e-412a-8e9d-9afb684153d4@googlegroups.com> <nee50c$ges$1@ger.gmane.org> <nee8le$8g0$1@ger.gmane.org>

Show all headers | View raw


On 4/10/2016 2:11 PM, Terry Reedy wrote:
> On 4/10/2016 9:36 AM, Diego Lelis wrote:
>> I need to make a change between windows, after some time. But i am
>> have a little bit of trouble making my code work: My windows change
>> only when i click on button, i tried to put lambda in my command and
>> also don't work.
>
> I and others have written multiple answers on Stackoverflow about making
> root.after work.  I suggest that you search "[tkinter] root.after" there.
>
> [snip somewhat baroque code]
>
> I urge you to read SO's "How to create a Minimal, Complete, and
> Verifiable example" https://stackoverflow.com/help/mcve
> This not only helps you write questions that get answers, but may help
> you find the problem yourself.
>
> I believe that all the stuff with .now and datetime deltas is
> inessential noise. The initial parameter to .after is a integer
> millisecond delta. All the font stuff is irrelevant to the problem, so
> is some other stuff in your code.
>
> I think you problem is that you never call root.after to start the
> process going.

I see you also posted on SO and got essentially the same answer 4 hours 
before I wasted my time saying the same thing because I thought you had 
been ignored.  Please don't do this.

-- 
Terry Jan Reedy

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


Thread

Change Windows Tkinter after some time Diego Lelis <diego.o.lelis@gmail.com> - 2016-04-10 06:36 -0700
  Re: Change Windows Tkinter after some time Terry Reedy <tjreedy@udel.edu> - 2016-04-10 14:11 -0400
  Re: Change Windows Tkinter after some time Terry Reedy <tjreedy@udel.edu> - 2016-04-10 15:13 -0400

csiph-web