Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 18th, 2005, 10:00 PM
Martin Blume
Guest
 
Posts: n/a
Default continuous plotting with Tkinter

I have a number-crunching application that spits out
a lot of numbers. Now I'd like to pipe this into a python
app and plot them using Tkinter, such as:
$ number_cruncher | myplot.py
But with Tkinter once I call Tkinter's mainloop() I
give up my control of the app and I can't continue to
read in data from stdin. Or can I? If so, how?

Regards
Martin



  #2  
Old July 18th, 2005, 10:00 PM
David Douard
Guest
 
Posts: n/a
Default Re: continuous plotting with Tkinter

Martin Blume wrote:
[color=blue]
> I have a number-crunching application that spits out
> a lot of numbers. Now I'd like to pipe this into a python
> app and plot them using Tkinter, such as:
> $ number_cruncher | myplot.py
> But with Tkinter once I call Tkinter's mainloop() I
> give up my control of the app and I can't continue to
> read in data from stdin. Or can I? If so, how?
>
> Regards
> Martin[/color]

Maybe the simpler is to run the Tk mainloop in a separate thread.
You may have a look a candygram which gives a very simple to use
multi-thread semantics (ala Haskell) and is simpler to use than the
threading module.


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles