in reply to editable text + syntax for addTextFramePage
#!/usr/bin/perl use strict; use warnings; use Tk; use Tk::Wizard; use Tk::TextHighlight; my $mw = new MainWindow; our $wiz; $wiz = $mw->Wizard( -debug => 1, -title => 'Wizard', -style => 'top', -tag_text => 'Wizard', ); $wiz->addPage ( sub { $wiz->_text_frame( -title => 'Highlight', -syntax => 'Perl', -text => "Setup Guide", ); } ); $mw->Label( -text => "MainWindow" )->pack; my $button = $mw->Button( -text => "Start Wizard", -command => sub { $wiz->Show(); } )->pack(); $mw->Button( -text => 'Quit', -command => sub { exit; } )->pack; MainLoop; __END__
|
|---|