I am making a program in which I use wxStatusBar, when the download starts, I start the child stream as follows:
def OnDownload(self, event): child = threading.Thread(target=self.Download) child.setDaemon(True) child.start()
Loading is another function without parameters (except self). I would like to update my status bar from there with some information about the download progress, but when I try to do this, I often get Xwindow, glib and segfaults errors. Any idea to solve this?
Solved: I just needed to turn on wx.MutexGuiEnter () before changing anything in the GUI inside the stream and wx.MutexGuiLeave () at the end. for instance
def Download(self):
And that's all: D
0x77D source share