python - tkinter populate treeview using threading pool -


i'm looking "best" way populate treeview using threads. have multiple mail account i'm checking new emails.

my plan use queue store accounts checked using check_mail method. method return list of new mails.

can use queue populate new mails , somehow loop while threads alive?

is there thread-safe, pattern solve this?

your question broad, answer be.

generally speaking, tkinter doesn't play multi-threading. can it, must make sure main thread interacts gui. common way use universal widget method after() schedule handling of data going out or being retrieved background threads, typically via queues, @ regular intervals.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -