Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

nonblocking output - in a different way
I know I know ... it's in the top 10 FAQs: how to output in a
nonblocking way.

My problem is just slightly different: I want to output the result of
an internal calculation (say an iteration that produces a couple of
values ($x,$y) each time) as a plot of the pixel onscreen:
$dot=$cv->createOval($x,$y,$x+1,$y+1);

from the related FAQs I saw I had to do something on the line of:
open(H, "tail -f -n 25 $ARGV[0]|") or die "Nope: $!";
$mw->fileevent(\*H, 'readable', [\&fill_text_widget, $t]);
..

but I dont know how to build my pipe: I'm not getting input from an
external program, but from an internal sub

any help appreciated...

Alessandro Magni

Report this thread to moderator Post Follow-up to this message
Old Post
Alythh
11-15-04 08:58 PM


Re: nonblocking output - in a different way
Alythh wrote:
> I know I know ... it's in the top 10 FAQs: how to output in a
> nonblocking way.
>
> My problem is just slightly different: I want to output the result of
> an internal calculation (say an iteration that produces a couple of
> values ($x,$y) each time) as a plot of the pixel onscreen:
>      $dot=$cv->createOval($x,$y,$x+1,$y+1);
>
> from the related FAQs I saw I had to do something on the line of:
>   open(H, "tail -f -n 25 $ARGV[0]|") or die "Nope: $!";
>   $mw->fileevent(\*H, 'readable', [\&fill_text_widget, $t]);
>   ...

You don't seem to need fileevent. What you simply need is:

$cv->update;

after each call to createOval.

--Ala

Report this thread to moderator Post Follow-up to this message
Old Post
Ala Qumsieh
11-15-04 08:58 PM


Re: nonblocking output - in a different way
God bless you...
that's was exactly what I needed.
Unfortunately I still have not very clear this notion of blocking
events - but in this case an "update" was just needed. Thanks!

Alessandro

Report this thread to moderator Post Follow-up to this message
Old Post
Alythh
11-16-04 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PerlTk archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:11 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.