
If self.f is not None and self.f.name in url: # temp file within the object, and the former is closed! # immediately after first failure only need to keep the last # If it is a tempfile already, just tell it to open it. Steven Sproat was on the right track (kudos for putting me on it - couldn't have done it without your suggestion) - here is are the relevant bits of a complete solution: import wx.html as htmlĭef _init_(self, urlQueue, responseQueue):Īnd in your derivative class of html.HtmlWindow: def OnOpeningURL(self, type, url): 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) This all needs to happen in an HtmlWindow. 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. I have gotten literally no where on this project because of this.

If you need a sample code of what I am writing let me know.ĮDIT: I'm stil having trouble figuring out an answer for this. 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. 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 program works fine, loads images when images are in the message's code, etc. 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)
