binding non-X events in listbox 
Author Message
 binding non-X events in listbox

I just implemented something similiar for a continually growing log

Somthing like:

$repeatid = $MAIN->repeat($pollinterval, sub{$pollflag++});
open (PSEUDOPIPE, "<$logfile");
until ($done) {  
    $size = -s $logfile;
    if ($oldsize < $size) {   #Append the new stuff.
        read(PSEUDOPIPE, $newstuff, $size - $oldsize);
        <Code to append $newstuff to listbox>
        $oldsize = $size;



Hope this helps,

Michael Bowler.

Michael Bowler                        IC Design Tools
Dept: 5T11                            Tel: (613) 765-1869

Sat, 17 Aug 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. acting on non event-oriented events

2. non-mouse event binding in Listbox doesn't work?

3. Drop-down listbox onchange event?

4. Listbox event

5. Click event on ListBox widget

6. Problem with binding events on TkPerl canvas

7. Binding resize event

8. How to bind 'Back Space' event

9. Binding mouse event to a canvas

10. Binding event to entry widget

11. binding an event to X

12. binding label event to checkbox


Powered by phpBB® Forum Software