Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Problem with duplicate Entry in One frame

by padawan_linuxero (Scribe)
on May 20, 2008 at 20:14 UTC ( [id://687646]=note: print w/replies, xml ) Need Help??


in reply to Re: Problem with duplicate Entry in One frame
in thread Problem with duplicate Entry in One frame

Hi I follow your code
but perhpas I am doing something wrong, can you tell me what is wrong?
this is the code :
sub update_bank_status { my ($upframe, $bank, $status) = @_; my $entry = $entry_widget{$bank}; unless ($entry) { $entry_widget{$bank} = $upframe -> Label ( -textvariable => \$bank )-> pack ( -side => 'left', -expand => 1 ); $upframe -> Entry ( - width => 20 )-> pack (-side => 'left', -expand => 1); } $entry -> configure (-text => $status); $entry -> configure (-foreground => $status eq "ACTIVO" ? "blue" : + "red" ); } sub update_statuses { open(FILE, "santa1.txt") || die("Could not open file!"); my @stat1=<FILE>; #close(FILE); while (<FILE>) { my ($bank, $status) = split(/\|/,@stat1); print $bank; print $status; update_bank_status ($upframe, $bank, $status); } close (FILE); }
inside the mainloop I put this :
$mw->repeat(5000, \&update_statuses);
Thank you!!! I really apreciate the effort

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://687646]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2026-03-17 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.