Tkinter - Multithreading

Published: 10 May 2023
on channel: JobinPy
6,444
244

I'll show you how to use multi-threading with Tkinter. We'll look at how to communicate with the main GUI thread from a second thread. Multi-threading is an important topic for Tkinter applications that have any kind of network feature.

Please consider supporting my work with your donations on Ko-fi:
https://ko-fi.com/jobinpy

Multithreading with Tkinter.

0:00 Intro
1:30 Demo application
2:55 The issue
3:36 Create a window
5:24 Create a frame
8:08 Create a progress label
8:55 Download method
10:33 Frozen window
12:23 Create a separate thread
15:46 Demo of separate thread
17:17 Communicate from second thread to first thread
21:00 Create ticket queue
26:49 Notify main thread to check queue
29:12 Check queue method
32:26 when= argument for event_generate()
33:25 Continue checking queue
34:03 Demo application
35:32 Showing a download has finished
37:17 Closure

#tkinter #tkintertutorial #multithread #pythongui #pythonguitutorial

event_generate()
http://tcl.tk/man/tcl8.5/TkCmd/event....


On this page of the site you can watch the video online Tkinter - Multithreading with a duration of hours minute second in good quality, which was uploaded by the user JobinPy 10 May 2023, share the link with friends and acquaintances, this video has already been watched 6,444 times on youtube and it was liked by 244 viewers. Enjoy your viewing!