Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: SOLVED - TK: How to change color of readonly BrowseEntry

by Sandy (Deacon)
on Oct 04, 2012 at 21:45 UTC ( #997331=note: print w/ replies, xml ) Need Help??


in reply to SOLVED - TK: How to change color of readonly BrowseEntry

This works on unix and windows

#!/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;
UPDATE: You found the answer before me.

PS: I got the answer from the CPAN description of Entry (which is a sub-widget of browse entry)


Comment on Re: SOLVED - TK: How to change color of readonly BrowseEntry
Download Code
Re^2: SOLVED - TK: How to change color of readonly BrowseEntry
by mrider (Sexton) on Oct 04, 2012 at 21:53 UTC
    I got the answer in a very round about way. So your answer is appreciated even though I already had an answer, since I now know how to get the answer. Said another way, you improved my knowledge. Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997331]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (15)
As of 2014-07-14 12:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (259 votes), past polls