in reply to Displaying NUL in a TK::Text widget
use strict; use warnings; use Tk; my $mw = MainWindow->new; my $text = $mw->Scrolled("Text")->pack; foreach my $num (0..20) { $text->insert("end", $num. chr($num)); $text->insert("end", "\n"); } $mw->Button( -text => 'Quit', -command => sub { exit }, )->pack; MainLoop;
-Mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Displaying NUL in a TK::Text widget
by thor (Priest) on Nov 07, 2004 at 05:04 UTC | |
by graff (Chancellor) on Nov 07, 2004 at 09:30 UTC | |
by tachyon (Chancellor) on Nov 07, 2004 at 12:01 UTC | |
by thor (Priest) on Nov 07, 2004 at 16:36 UTC | |
by Aighearach (Initiate) on Nov 07, 2004 at 21:24 UTC | |
by thor (Priest) on Nov 08, 2004 at 01:26 UTC |