programming-examples/perl/GUI/Insert text to a Text control (TextField).pl

12 lines
181 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
use Tk;
my $main = MainWindow->new;
my $entry1 = $main->Entry->pack;
$entry1->insert(
0,
'Here is some long text that you have to scroll to see.'
);
MainLoop;