python Programming Glossary: self.after
Correct way to implement a custom popup tkinter dialog box http://stackoverflow.com/questions/10057672/correct-way-to-implement-a-custom-popup-tkinter-dialog-box arg t is specified call time_out after t milliseconds if t self.after t func self.time_out def time_out self self.v None self.quit..
simple animation using tkinter http://stackoverflow.com/questions/11502879/simple-animation-using-tkinter at regular intervals def animate self self.draw_one_frame self.after 100 self.animate Once you call this function once it will continue.. animate self if not self.should_stop self.draw_one_frame self.after 100 self.animate You would then have a button that when clicked..
How to connect a progress bar to a function? http://stackoverflow.com/questions/15323574/how-to-connect-a-progress-bar-to-a-function periodiccall self self.checkqueue if self.thread.is_alive self.after 100 self.periodiccall else self.button.config state active def..
Tkinter: How do widgets update? http://stackoverflow.com/questions/5781286/tkinter-how-do-widgets-update text t message 0 self.label.config text t if len message 1 self.after 500 self.print_label_slowly message 1 app App app.mainloop This..
Tkinter: Wait for item in queue http://stackoverflow.com/questions/7141509/tkinter-wait-for-item-in-queue False # non blocking except Queue.Empty pass finally self.after UPDATE_TIME self.read_queue The problem with this approach is..
a downloading progress bar in ttk http://stackoverflow.com/questions/7310511/a-downloading-progress-bar-in-ttk if self.bytes self.maxbytes # read more bytes after 100 ms self.after 100 self.read_bytes app SampleApp app.mainloop For this to work..
|