#!/usr/bin/perl use strict; use warnings; use Tk; use Tk::LabFrame; use Tk::BrowseEntry; my $main = MainWindow->new(); $main->fontCreate('big', -size=> 24 ); my $tx = 'Larry'; my $fr = $main->LabFrame( -label => '3 Stooges', -labelside => 'acrosstop', )->pack(); my @choices = ( 'Curly', 'Larry', 'Moe' ); my $be = $fr->BrowseEntry( -label => 'Whoop Whoop', -labelPack => [ -side => 'left', -anchor => 'w', -expand => 1, -padx => 4 ], -font => 'big', -width => 20, -state => 'normal', -choices => \@choices, -variable => \$tx )->pack( -side => 'top', -anchor => 'e' ); $be->Subwidget('entry')->Subwidget('entry')->configure( '-background' => 'white', '-fg' => 'red' ); $be->Subwidget("slistbox")->configure( -background => 'white' ); $be->Subwidget('entry')->Subwidget('entry')->configure( '-background' => 'white', '-fg' => 'red' ); $be->Subwidget("slistbox")->configure( -background => 'white' ); my @choices1 = ( 'A', 'B', 'C' ); my $tx1 = 'B'; my $be1 = $fr->BrowseEntry( -label => 'Select', -labelPack => [ -side => 'left', -anchor => 'w', -expand => 1, -padx => 4 ], -font => 'big', -width => 20, -state => 'normal', -choices => \@choices1, -variable => \$tx1 )->pack( -side => 'top', -anchor => 'e' ); $be1->Subwidget('entry')->Subwidget('entry')->configure( '-background' => 'white', '-fg' => 'blue' ); $be1->Subwidget("slistbox")->configure( -background => 'white' ); $be1->Subwidget('entry')->Subwidget('entry')->configure( '-background' => 'white', '-fg' => 'blue' ); $be1->Subwidget("slistbox")->configure( -background => 'white' ); MainLoop();