I have very little experience with Tk, but the docs (and the test I ran using your example code) indicate that defaults can be provided by simply adding -textvariable => \$defaultvalue to the list of options when you create your Entry object. Note that the -textvariable parameter must take a reference.
my $default = 5; my $nmbr = $mw->Entry(-width => 10, -textvariable => \$default);
In reply to Re: How do I preset values in an entry-box?
by bobf
in thread How do I preset values in an entry-box?
by tamaguchi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |