#!/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;
In reply to Re: show/hide an Entry field
by Anonymous Monk
in thread show/hide an Entry field
by dadenn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |