Selvakumar has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
I have a combo box having one set of details and i need to show related list to another combobox. I need to show from the list when i select "colors" i need to show colors details in the another combobox and the same should change if i select "fruits". Please suggest.
use strict; use warnings; use Tk; use Tk::BrowseEntry; my $var; my $mw = tkinit; my $widget = $mw->BrowseEntry( -label => 'Select the Journal Name:', -variable => \$var, -state => 'normal', -choices => [qw(Color Fruits)], #-width => 45 )->pack( -side => 'top', -pady => '10', -anchor => 'w'); my $widget1 = $mw->BrowseEntry( -label => 'Select the Journal Name:', -variable => \$var, -state => 'normal', -choices => [qw(White Red)], #-width => 45 )->pack( -side => 'top', -pady => '10', -anchor => 'w'); MainLoop();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Combo box linked with another combo box
by zentara (Cardinal) on Feb 19, 2013 at 17:12 UTC | |
|
Re: Combo box linked with another combo box
by Anonymous Monk on Feb 19, 2013 at 15:33 UTC | |
by Anonymous Monk on Feb 19, 2013 at 15:35 UTC |