When to call thread.join in a GUI application
import wx import json import queue from collections import namedtuple import threading class MyDialog(wx.Frame): def __init__(self, parent, title): self.no_resize = wx.DEFAULT_FRAME_STYLE & ~ (wx.RESIZE_BORDER | wx.MAXIMIZE_BOX) wx.Frame.__init__(self, parent, title=title, size=(500, 450),style = self.no_resize) self.panel = wx.Panel(self, size=(250, 270)) self.emp_selection = wx.ComboBox(self.panel, -1, pos=(40, 50), size=(200,100)) self.start_read_thread() #code to load other GUI components self.Centre() self.Show(True) def read_employees(self, read_file): list_of_emails = queue.Queue() with