Code review comment for lp:~craighewetson-deactivatedaccount/bzr-explorer/shorten-refresh-time

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote :

My only problem i have is that i would like to call self.do_refresh() from a separate Thread. Because the dialog now takes longer to "complete" since its holding the ui to do the refresh work.

I'm not a python pro so is there any way to call the do_refresh() method from a Thread so that the ui does not get held up.
I've tried but I get all sorts of errors.
(QObject: Cannot create children for a parent that is in a different thread.
(Parent is QTextDocument(0x9cb6b18), parent's thread is QThread(0x98f7f00), current thread is QThread(0x9e58db8))

In java I'll easily be able to do this, but thats just because I know java better.

« Back to merge proposal