in reply to SOLVED - TK: How to change color of readonly BrowseEntry
This works on unix and windows
UPDATE: You found the answer before me.#!/usr/bin/perl use strict; use warnings; use Tk; use Tk::BrowseEntry; my $update = "hello"; my $mw=MainWindow->new(); my $bb = $mw->BrowseEntry( -variable => \$update, -state=>'readonly', -disabledbackground=>'red' )->pack; $bb->insert( 'end', qw(one two three) ); MainLoop;
PS: I got the answer from the CPAN description of Entry (which is a sub-widget of browse entry)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: SOLVED - TK: How to change color of readonly BrowseEntry
by mrider (Beadle) on Oct 04, 2012 at 21:53 UTC |
In Section
Seekers of Perl Wisdom