¡@

Home 

python Programming Glossary: root.after

simple animation using tkinter

http://stackoverflow.com/questions/11502879/simple-animation-using-tkinter

from following and modifying examples. I guess I can use root.after to achieve this but I'm not quite sure I understand how from..

Download progressbar for Python 3 [duplicate]

http://stackoverflow.com/questions/13881092/download-progressbar-for-python-3

progress bar if the download takes more than .5 seconds root.after 500 root.deiconify ready.set # gui is ready root.mainloop.. progress if percent 100 # finishing download quit_id root.after 0 root.destroy # close GUI return urlretrieve url filename reporthook.. # save to filename # schedule to download the next chunk root.after 0 download_chunk readsofar len data chunksize # setup GUI to..

Python ttk progress bar appears after process, why?

http://stackoverflow.com/questions/16400533/python-ttk-progress-bar-appears-after-process-why

foo_thread.daemon True progressbar.start foo_thread.start root.after 20 check_foo_thread def check_foo_thread if foo_thread.is_alive.. def check_foo_thread if foo_thread.is_alive root.after 20 check_foo_thread else progressbar.stop root Tk mainframe..

Making python/tkinter label widget update?

http://stackoverflow.com/questions/1918005/making-python-tkinter-label-widget-update

width 100 label1.update_idletasks for i in range 1 secs 1 root.after i 1000 decrement_label root.after i 1 1000 lambda root.destroy.. for i in range 1 secs 1 root.after i 1000 decrement_label root.after i 1 1000 lambda root.destroy root.mainloop python tkinter ..

I Need a little help with Python, Tkinter and threading

http://stackoverflow.com/questions/3567238/i-need-a-little-help-with-python-tkinter-and-threading

mainLoopThread topLevelList len topLevelList 1 root.after 5000 startCounting class mainLoopThread threading.Thread def..

How do you run your own code alongside Tkinter's event loop?

http://stackoverflow.com/questions/459083/how-do-you-run-your-own-code-alongside-tkinters-event-loop

Tk object from Tkinter import root Tk def task print hello root.after 2000 task # reschedule event in 2 seconds root.after 2000 task.. hello root.after 2000 task # reschedule event in 2 seconds root.after 2000 task root.mainloop Here's the decl and docs for the after..