in reply to A ghost Tk Entry in my program
Additionally, here are some other suggestions:
This will make your code a lot easier to debug and maintain.sub make_entry { my ($upperframe, $label, $filename) = @_; ... } make_entry($upperframe, 'Santander', "santa1.txt"); make_entry($upperframe, 'Banamex', "banamex.txt"); make_entry($upperframe, 'HSBC', "hsbc.txt"); make_entry($upperframe, 'Banorte', "banorte.txt");
This also shows how to dynamically change the foreground.my $entry = $upperframe->Entry(-textvariable => ...)->pack(...); $entry->configure(foreground => ...bank is active... ? 'red' : 'blue +');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A ghost Tk Entry in my program
by padawan_linuxero (Scribe) on May 10, 2008 at 17:47 UTC |