I googled about the problem and found this question:

http://stackoverflow.com/questions/3842558/pyqt-and-threads

and this:

http://diotavelli.net/PyQtWiki/Threading,_Signals_and_Slots

http://doc.qt.nokia.com/4.6/threads-qobject.html

Now I start the work in new thread, using 1 call:

def run(self):
    thread.start_new_thread(self.upload, ())

seems, that I'll have to use QThread module instead. If someone here
knows about the organization of leo.core.leoGlobals es function,
please, tell me, how to send the signal, emulating this function call
from QThread. Plus, if I use QThread, ftp module won't work for Tk :(.

Can we create a thread safe function for all the graphic libs?

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to