Configure a Text Widget : Text « GUI « Perl
- Perl
- GUI
- Text
Configure a Text Widget
#!/usr/local/bin/perl -w
use Tk;
use strict;
my $mw = MainWindow->new;
my $t = $mw->Text()->pack();
$t->tagConfigure('bold', -font => "{Courier New} 24 {bold}");
$t->insert('end', "This is some normal text\n");
MainLoop;
Related examples in the same category