>
> I know the problem. The following code works well:
>
> " x-bug.vim
>
> python << EOF
>
> import threading
> import time
>
> print('thread 1')
>
> def print_to_vim():
> print('thread 2')
>
> a = threading.Thread(target=print_to_vim, args=())
>
> a.daemon = False
>
> print('thread 1 again')
>
> time.sleep(3)
>
> EOF
>
> -- Hong
Thanks, but I think you've forgotten to start() that second thread?
Thanks for the link though, I'll have a look at how multi-threading
works in your plugin. As I mentioned above, multiple threads through
the Py Interface was actually OK, just that only one of them can
output through Gvim.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php