programming-examples/perl/GUI/Insert text to a Text control (TextField).pl
2019-11-15 12:59:38 +01:00

12 lines
181 B
Perl

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;