lundi 8 août 2016

tkinter populate treeview using threading pool

I'm looking for "best" way to populate treeview using threads. I have multiple mail account which I'm checking for new emails.

My plan is to use Queue to store accounts which will be checked using check_mail method. This method will return a list of new mails.

Can I use another Queue which I will populate with new mails and somehow loop while threads are alive?

Is there any thread-safe, good pattern to solve this?

Aucun commentaire:

Enregistrer un commentaire