Master PyQt5 part 10: Make responsive GUIs with Threads

preview_player
Показать описание
Author Alan D Moore shows you how to keep your PyQt applications responsive while executing a long-running function using Timers and Threads.

Thanks for watching!
Рекомендации по теме
Комментарии
Автор

Thanks for the tutorials, I have bought the book and this will be good to look at for reference as a code in PyQT5.

rwbazillion
Автор

The Norm McDonald of Python GUI coding!

Love it.

joshuakornblum
Автор

This and the analogies within helped a lot with understanding threading better. It's quite difficult to wrap your mind around the concept and how it's implemented, but this helped to clarify quite a bit which I needed for a major project.

xllvr
Автор

Thanks for the explanation. I came in time before I was about to give up and accept a freezing GUI. If only I had stubbled on this earlier, might have saved a ton of time.

DA_CSF
Автор

Thanks for this wonder tutorial series. How could we stop QThread safely from GUI on demand?

codenio
Автор

whooohoo! I got threads working in my project! Thanks man!!!

Soljarag
Автор

Your way of teaching is dam good, best programming video explanation I have seen. That too on threads. Amazing sir, I'm looking forward to buying your book. Please continue doing video on pyqt.
I'm a freelancer and this particular video helped me through threading, and also your signals ans slots video.
Thank you for your videos.

weekendprogrammer
Автор

So very well explained! you didn't miss a beat in the whole video; please go into teaching :)

pabloparada
Автор

Man, i'm new to python and you helped me SO much! Ty mate, keep the great work

Lucas-brfn
Автор

That story time got me 😄😄😄😄😄 subscribed just because of it! 😂😂

VAN_production.mp
Автор

Thanks for your lesson it's really helpful and very easy to follow you, awesome 10/10

aneesch
Автор

Hey Man thinks to you I learned, many PyQt concepts in no time. keep up !

mohamedsaidi
Автор

Great video, super helpful thanks for your hard work in making this!

Grlypyt
Автор

Thank you so much! You’ve helped me a lot❤️

mahmoudali
Автор

I recently implemented a Prod-Cons (I/O bound) thread pool using Python threading and tkinter (using "after"). The tk version seems simpler but not as versatile since tk is not "thread aware". Basically I just used ".after" in tk as a timer-interrupt to launch and monitor the back-end threads. Eventually I would like to translate that app to Qt5. I love the "Mr 5-bags" analogy.

johnnytoobad
Автор

Hey man, just want to say your vids are extremely helpful, the metaphor was supremely welcome, can't stand "Mr. 5 Carts".

With that, if I could make a request. The internet is throughout lacking for people who have a hard time sifting through documentation and stack overflow posts that go off on a tangent or are titled ambiguously and the body is too specific.

One thing that I've been doing, and using your videos, I've been piecing things together. I've only been programming since may and I've become a little ambitious. However, I'm not letting the wall of plethora of knowledge stand in my way. Though I lack some crucial and fundamental things. Software engineering and application engineering best practices. Incorporating design patterns into a gui application. The dos and don't's if you will. If a very basic theory crafted video (I know very conflicting ideas) were to be made that outlines how one should approach a multievent and multitasked application I'd venture to say it would be a boon to those who have taken on programming to enhance their current career, such as myself being a network engineer.

Qthreading is something I've taken on, though I'm experiencing some things that I don't know if it's something I'm doing or just an inherent problem (lag in the gui, not locking up, when I run a background task that doesn't require sending data back to the gui.

TeaBaggerMaster
Автор

ha, this is pretty much exactly what I needed...

Soljarag
Автор

Hi!

Great tutorial, explained the concepts quite well.

The Worker threads are not terminating after exiting the main window(By Clicking the 'X').

The Console says 'QThread: Destroyed while thread is still running'.

Please help.

siddharthchabukswar
Автор

Hi Alan, I bought a few books about PyQt5, and yours is by far the on that I got the best understanding from, so a big thanks for your good work.. I have two question regarding Qthread that I hope you can help me with. I have made a program with 10 threads, each thread updates different locations in a Qtable at 10Hz in the main GUI(it works but I use python thread) I need an example of how to make multiple Qthreads, I cant figure out if I need one "worker" for each "worker_thread" and is each of my 10 Objects(that needs to run individual) actually the "worker" ?

johanocop
Автор

Awesome video. I am wondering if I should use PyQT or PySide2. Can' find a definitive answer online. I am developing (adding a UI to my huge set of Bioinformatics classes) a tool and it will be 100% free and open-source.

rebelScience