I am writing a chatroom client in wxPython in which there are 3 wx.HtmlWindows
for each chatroom on a notebook page: one for the messages, one for the title of the room, and one for the topic of the room (two similar things)
The program works fine, loads images when images are in the message's code, etc. But when it suddenly has to load a bunch of images at once, or an animated image that takes longer to load, or a combination (the images are generally just 50x50 - 100x100) it can be a problem because sometimes it will lock up and then the program won't respond because it's taking too long. The question posing is, how would I stop the locking up from happening? I don't know how to go about binding wx.HtmlWindow
's image loading to have the images load dynamically in a worker thread instead of the program having to wait for the images to load to continue.
If you need a sample code of what I am writing let me know.
EDIT: I'm stil having trouble figuring out an answer for this.. I have gotten literally no where on this project because of this. my application needs to be able to dynamically load messages/images without it locking up and I simply do not know how to force any image loading into a different thread so that the frames of the images and the messages are displayed, while the loader thread loads the images and updates the empty frames when done. This all needs to happen in an HtmlWindow. I want it to act like a real web browser when it comes to loading images (you see the frames and the images slowly appear)