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


Groups > comp.lang.python > #106796

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 14:11 -0400
Message-ID <mailman.11.1460311891.6211.python-list@python.org> (permalink)
References <1a13aefe-c66e-412a-8e9d-9afb684153d4@googlegroups.com> <nee50c$ges$1@ger.gmane.org>

Show all headers | View raw


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.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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