Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: show/hide an Entry field

by Anonymous Monk
on Jun 29, 2016 at 02:04 UTC ( [id://1166829]=note: print w/replies, xml ) Need Help??


in reply to show/hide an Entry field

#!/usr/bin/perl # http://perlmonks.org/?node_id=1166828 use strict; use warnings; use Tk; my $alt = 0; my $mw = new MainWindow; my $e = $mw->Entry(-show => '*', )->pack(); $mw->Button(-text => 'Toggle', -command => sub { $e->configure( -show => $alt++ % 2 ? '*' : '' ) }, )->pack(); MainLoop;

Replies are listed 'Best First'.
Re^2: show/hide an Entry field
by dadenn (Initiate) on Jun 29, 2016 at 23:14 UTC
    I don't believe this method works with frame/Entry/configure does it?

      Don't go by belief. Go by test and verify.

      Show your code.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-04-19 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found