John Hunter wrote:
> I don't think this is what you want.  gtk is already threaded.  By
> doing things in the gtk mainloop, you are using their threading.  You
> are asking for a world of pain if you try and mix in python threading
> unless you really know what you are doing.  The point of the example
> is that you don't need to use python threads.  All your printing and
> figure updating can be done in function calls activated by the gtk
> loop.

Ok, I think I see your point. Let me explain what I'm after, then. I'm 
doing some distributed computing and need to have a pylab process 
running remotely that accepts plotting commands. The issue is that the 
show() command takes over the main thread of execution, so I can't have 
my listening process running. Essentially I need to:

1) Pop up a figure()
2) Start the drawing loop
3) Start the socket listener
4) When the listener gets commands, execute them (plot, etc)

Is this something that I can do?


Thanks,


dan

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to