try this:
use strict; use warnings; use Tk; my $mw = tkinit; my $s = 'text'; my $b = $mw->BrowseEntry->pack; $mw->Button(-text => 'add entry', -command => sub{$b->insert('end',$s.='-foo'); $b->updateListWidth; } )->pack; MainLoop;
In reply to Re: Screen width of string in proportional font
by lamprecht
in thread Screen width of string in proportional font
by pdsx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |