multithreading - Display a Dialog in a thread in python -


i trying display loader-dialog in thread because when start upload system of files can't see window until processing finished.

i tried this:

thread.start_new_thread(self.display_loader(),(self))  

but didn't work.

there special way run new window in thread?

everything done python , pygtk

when self.display_thread(), call display_thread function right there, , pass return value first argument thread.start_new_thread. that's not intended.

that said, think you're better off doing other way around; let main thread own ui, , loading off in thread.

remember gtk+ not thread-safe, it's absolutely best all interaction gtk+ single thread.

update: actually, above perhaps over-simplifying bit, it's "common truth" i've understood (i've been using gtk+ ~15 years seldom threads). this article re-states in more forgiving way, not sure if makes life easier in case, though. wanted mention in completeness' sake.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -