python - How to Prevent Tkinter from waiting for any action -
I need something about the tanker module. Down is an example code that is issuing me
Import cost constants from imported imported tanken * tk = Tkinter.Tk () frame = ttnator.fr (vaccine, relief = rides, limit = 2) frame .pack (fill = both, expansion = 1) label = ticcentor Label (frames, text = "hello, user-puts a look at your data") Label.pack (fill = X, extension = 1) tk.mainloop () This one There is a small piece inside the program, where I have to check some data and as a result, we create excel shells per hour. For the purpose of information, I am displaying this data using Tinkiner (new to Controller). After displaying the data, the program has to sleep for one hour and then starts from the beginning (collecting information, typing on the screen on the same accelerate and displaying). Now the point is that after creating a widget interpreter, waiting for further input, this is the default behavior, but I should not do this. Is there any way that Tuckner's main loop & amp; Continue execution or if you can suggest waiting for another type of window to avoid waiting.
Thank you very much Kriss332 "post-text" itemprop = "text">
You need the tanker to "wait for input" because such program programs How to react, like to redraw, to leave, to resize, etc.
If you want to wait for an hour and then want to refresh the display, then there is a command to do this.
Break Your code is in two pieces: which creates the main window, and that fills the window with the information from the spreadsheet, then tk to run the "refresh" function in the hour. After .
Comments
Post a Comment