padawan_linuxero has asked for the wisdom of the Perl Monks concerning the following question:
now these code has some things missing, one of them how to make the data on the sub status_bank being use on the sub build_entry_bank and later how to make the data on sub status_bank can by refresh every one minute with repeat does anyone have any pointers or teach me it will be apreciatteduse Tk; $mw->title("Bank status"); $mw->geometry("1024x764"); my $upperframe = $mw->frame()-pack(-fill => 'x'); Tk::MainLoop(); sub build_entry_bank{ my $statusbank = shift; my $box_banamex = $upperframe->Entry( -forecolor => 'blue', -textvariable => \$statusbank, -width => 20, )->pack (-side => 'left', -expand => 1); return $box_banamex; } sub status_bank{ open (DATBANK, "banamex.txt") || die ("File Bank did not open! +!!!"); my @bank_status = <DATBANK>; close (DATBANK); foreach my $status_bank(@bank_status){ chomp ($status_bank); my $statusbank; my $bank; ($bank,$statusbank) = split(/\|/,$status_bank); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Refresh data ina entry widget
by Popcorn Dave (Abbot) on May 29, 2008 at 02:09 UTC | |
|
Re: Refresh data ina entry widget
by zentara (Cardinal) on May 29, 2008 at 11:38 UTC | |
by padawan_linuxero (Scribe) on May 29, 2008 at 15:24 UTC | |
by zentara (Cardinal) on May 29, 2008 at 19:16 UTC | |
|
Re: Refresh data ina entry widget
by starbolin (Hermit) on May 29, 2008 at 03:43 UTC | |
|
Re: Refresh data ina entry widget
by starbolin (Hermit) on May 29, 2008 at 03:49 UTC |