home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 March / PCWorld_2003-03_cd.bin / Software / Topware / activeperl / ActivePerl / Perl / bin / widget.bat < prev    next >
Encoding:
DOS Batch File  |  2002-12-01  |  18.1 KB  |  522 lines

  1. @rem = '--*-Perl-*--
  2. @echo off
  3. if "%OS%" == "Windows_NT" goto WinNT
  4. perl -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
  5. goto endofperl
  6. :WinNT
  7. perl -x -S %0 %*
  8. if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl
  9. if %errorlevel% == 9009 echo You do not have Perl in your PATH.
  10. if errorlevel 1 goto script_failed_so_exit_with_non_zero_val 2>nul
  11. goto endofperl
  12. @rem ';
  13. #!/usr/local/bin/perl -w
  14. #line 15
  15.  
  16. require 5.004;
  17.  
  18. use Tk 800.000;
  19. use lib Tk->findINC('demos/widget_lib');
  20. use Tk::widgets qw/Dialog ErrorDialog ROText/;
  21. use WidgetDemo;
  22. use subs qw/invoke lsearch see_code see_vars show_stat view_widget_code/;
  23. use vars qw/$MW $FONT $WIDTRIB/;
  24. use vars qw/$CODE $CODE_RERUN $CODE_TEXT $VARS $VIEW $VIEW_TEXT/;
  25. use vars qw/$BRAKES $LIGHTS $OIL $SOBER $TRANS $WIPERS/;
  26. use vars qw/$COLOR $FONT_STYLE $POINT_SIZE $DEMO_FILE %DEMO_DESCRIPTION/;
  27. use strict;
  28.  
  29.  
  30. $MW = Tk::MainWindow->new;
  31. $MW->configure(-menu => my $menubar = $MW->Menu);
  32.  
  33. {
  34.     package WidgetWrap;
  35.     @WidgetWrap::ISA = qw/Tk::MainWindow/;
  36.  
  37.     # This magic conspires with widget's AUTOLOAD subroutine to make user
  38.     # contributed demonstrations that don't use WidgetDemo embed properly.
  39.     # The trick works because widget creates a superclass of Tk::MainWindow
  40.     # which invokes WidgetDemo() implicitly. You loose if you bypass the
  41.     # inheritance mechanism and call Tk::MainWindow directly.
  42.  
  43.     sub new {
  44.     my ($name) = $::DEMO_FILE =~ m#([^/]+).pl$#;
  45.     $::MW->WidgetDemo(-name => $name, -text => $::DEMO_DESCRIPTION{$name});
  46.     }
  47. }
  48.  
  49. @MainWindow::ISA = 'WidgetWrap';
  50.  
  51. $MW->title('Widget Demonstration');
  52. $FONT = '-*-Helvetica-Medium-R-Normal--*-140-*-*-*-*-*-*';
  53. my $widget_lib = Tk->findINC('demos/widget_lib');
  54. my $wd = "$widget_lib/WidgetDemo.pm";
  55. $WIDTRIB = Tk->findINC('demos/widtrib');
  56. unless (Tk::tainting) {
  57.     $WIDTRIB = $ENV{WIDTRIB} if defined $ENV{WIDTRIB};
  58.     $WIDTRIB = $ARGV[0] if defined $ARGV[0];
  59. }
  60.  
  61. # The code below creates the main window, consisting of a menu bar
  62. # and a text widget that explains how to use the program, plus lists
  63. # all of the demos as hypertext items.
  64.  
  65. my $file = $menubar->cascade(qw/-label File -underline 0 -menuitems/ =>
  66.     [
  67.       [cascade    => '~View', -menuitems =>
  68.         [
  69.           [command  => '~widget', -command => [\&view_widget_code, __FILE__]],
  70.           [command  => '~WidgetDemo', -command => [\&view_widget_code, $wd]],
  71.         ], # end cascade menuitems
  72.       ], # end view cascade
  73.       '',
  74.       [command    => '~Quit', -command => [\&exit]],
  75.     ]);
  76.  
  77. my $help = $menubar->cascade(qw/-label Help -underline 0 -menuitems/ =>
  78.     [
  79.       [command    => '~About'],
  80.     ]);
  81.  
  82. my $T = $MW->Scrolled('ROText',
  83.     -scrollbars => 'e',        
  84.     -wrap       => 'word',
  85.     -width      => 60,
  86.     -height     => 30,
  87.     -font       => $FONT,
  88.     -setgrid    => 1,
  89. )->grid(qw/-sticky nsew/);
  90. $MW->gridRowconfigure(   0, -weight => 1); # allow expansion in both ...
  91. $MW->gridColumnconfigure(0, -weight => 1); # ... X and Y dimensions
  92.  
  93. my $STATUS_VAR;
  94. my $status = $MW->Label(-textvariable => \$STATUS_VAR, qw/-anchor w/);
  95. $status->grid(qw/-sticky ew/);
  96.  
  97. # Create a bunch of tags to use in the text widget, such as those for
  98. # section titles and demo descriptions.  Also define the bindings for
  99. # tags.
  100.  
  101. $T->tagConfigure(qw/title -font -*-Helvetica-Bold-R-Normal--*-180-*-*-*-*-*-*/);
  102. $T->tagConfigure(qw/demo -lmargin1 1c -lmargin2 1c -foreground blue/);
  103.  
  104. if ($MW->depth  == 1) {
  105.     $T->tagConfigure(qw/hot -background black -foreground white/);
  106.     $T->tagConfigure(qw/visited -lmargin1 1c -lmargin2 1c -underline 1/);
  107. } else {
  108.     $T->tagConfigure(qw/hot -relief raised -borderwidth 1 -foreground red/);
  109.     $T->tagConfigure(qw/visited -lmargin1 1c -lmargin2 1c -foreground/ =>
  110.         '#303080');
  111. }
  112.  
  113. $T->tagBind(qw/demo <ButtonRelease-1>/ => \&invoke);
  114. my $last_line = '';
  115. $T->tagBind(qw/demo <Enter>/ => [sub {
  116.     my($text, $sv) = @_;
  117.     my $e = $text->XEvent;
  118.     my($x, $y) = ($e->x, $e->y);
  119.     $last_line = $text->index("\@$x,$y linestart");
  120.     $text->tagAdd('hot', $last_line, "$last_line lineend");
  121.     $text->configure(qw/-cursor hand2/);
  122.     show_stat $sv, $text, $text->index('current');
  123.     }, \$STATUS_VAR]
  124. );
  125. $T->tagBind(qw/demo <Leave>/ => [sub {
  126.     my($text, $sv) = @_;
  127.     $text->tagRemove(qw/hot 1.0 end/);
  128.     $text->configure(qw/-cursor xterm/);
  129.     $$sv = '';
  130.     }, \$STATUS_VAR]
  131. );
  132. $T->tagBind(qw/demo <Motion>/ => [sub {
  133.     my($text, $sv) = @_;
  134.     my $e = $text->XEvent;
  135.     my($x, $y) = ($e->x, $e->y);
  136.     my $new_line = $text->index("\@$x,$y linestart");
  137.     if ($new_line ne $last_line) {
  138.         $text->tagRemove(qw/hot 1.0 end/);
  139.         $last_line = $new_line;
  140.         $text->tagAdd('hot', $last_line, "$last_line lineend");
  141.     }
  142.     show_stat $sv, $text, $text->index('current');
  143.     }, \$STATUS_VAR]
  144. );
  145.  
  146. # Create the text for the text widget.
  147.  
  148. $T->insert('end', "Perl/Tk Widget Demonstrations\n", 'title');
  149. $T->insert('end',
  150. "\nThis application provides a front end for several short scripts that demonstrate what you can do with Tk widgets.  Each of the numbered lines below describes a demonstration;  you can click on it to invoke the demonstration.  Once the demonstration window appears, you can click the \"See Code\" button to see the Perl/Tk code that created the demonstration.  If you wish, you can edit the code and click the \"Rerun Demo\" button in the code window to reinvoke the demonstration with the modified code.\n");
  151.  
  152. # Define globals for demo toplevels, informative text with tags for
  153. # highlighting and specifying the demo's file name.
  154.  
  155. $T->insert('end', "\n", '',
  156.        "Labels, buttons, checkbuttons, and radiobuttons\n", 'title');
  157. $T->insert('end', "1. Labels (text and images).\n", [qw/demo demo-labels/]);
  158. $T->insert('end', "2. Buttons.\n", [qw/demo demo-button/]);
  159. $T->insert('end', "3. Checkbuttons (select any of a group).\n",
  160.     [qw/demo demo-check/]);
  161. $T->insert('end', "4. Radiobuttons (select one of a group).\n",
  162.     [qw/demo demo-radio/]);
  163. $T->insert('end', "5. A 15-puzzle game made out of buttons.\n",
  164.     [qw/demo demo-puzzle/]);
  165. $T->insert('end', "6. Iconic buttons that use bitmaps.\n",
  166.     [qw/demo demo-icon/]);
  167. $T->insert('end', "7. Two labels displaying images.\n",
  168.     [qw/demo demo-image1/]);
  169. $T->insert('end', "8. A simple user interface for viewing images.\n",
  170.     [qw/demo demo-image2/]);
  171.  
  172. $T->insert('end', "\n", '', "Listboxes\n", 'title');
  173. $T->insert('end', "1. 50 states.\n", [qw/demo demo-states/]);
  174. $T->insert('end', "2. Colors: change the color scheme for the application.\n",
  175.     [qw/demo demo-colors/]);
  176. $T->insert('end', "3. A collection of famous sayings.\n",
  177.     [qw/demo demo-sayings/]);
  178.  
  179. $T->insert('end', "\n", '', "Entries\n", 'title');
  180. $T->insert('end', "1. Without scrollbars.\n", [qw/demo demo-entry1/]);
  181. $T->insert('end', "2. With scrollbars.\n", [qw/demo demo-entry2/]);
  182. $T->insert('end', "3. Simple Rolodex-like form.\n", [qw/demo demo-form/]);
  183.  
  184. $T->insert('end', "\n", '', "Text\n", 'title');
  185. $T->insert('end', "1. Basic editable text.\n", [qw/demo demo-texts/]);
  186. $T->insert('end', "2. Text display styles.\n", [qw/demo demo-style/]);
  187. $T->insert('end', "3. Hypertext (tag bindings).\n", [qw/demo demo-bind/]);
  188. $T->insert('end', "4. A text widget with embedded windows.\n",
  189.     [qw/demo demo-twind/]);
  190. $T->insert('end', "5. A search tool built with a text widget.\n",
  191.     [qw/demo demo-search/]);
  192.  
  193. $T->insert('end', "\n", '', "Canvases\n", 'title');
  194. $T->insert('end', "1. The canvas item types.\n", [qw/demo demo-items/]);
  195. $T->insert('end', "2. A simple 2-D plot.\n", [qw/demo demo-plot/]);
  196. $T->insert('end', "3. Text items in canvases.\n", [qw/demo demo-ctext/]);
  197. $T->insert('end', "4. An editor for arrowheads on canvas lines.\n",
  198.     [qw/demo demo-arrows/]);
  199. $T->insert('end', "5. A ruler with adjustable tab stops.\n",
  200.     [qw/demo demo-ruler/]);
  201. $T->insert('end', "6. A building floor plan.\n", [qw/demo demo-floor/]);
  202. $T->insert('end', "7. A simple scrollable canvas.\n", [qw/demo demo-cscroll/]);
  203. $T->insert('end', "8. Tiles and transparent images.\n", [qw/demo demo-transtile/]);
  204.  
  205. $T->insert('end', "\n", '', "Scales\n", 'title');
  206. $T->insert('end', "1. Vertical scale.\n", [qw/demo demo-vscale/]);
  207. $T->insert('end', "2. Horizontal scale.\n", [qw/demo demo-hscale/]);
  208.  
  209. $T->insert('end', "\n", '', "Menus\n", 'title');
  210. $T->insert('end', "1. A window containing several menus and cascades.\n",
  211.     [qw/demo demo-menus/]);
  212. $T->insert('end', "2. Like above, but in a manner particular to Perl/Tk.\n",
  213.     [qw/demo demo-menus2/]);
  214. $T->insert('end', "3. Menubuttons.\n",  [qw/demo demo-menbut/]);
  215.  
  216. $T->insert('end', "\n", '', "Common Dialogs\n", 'title');
  217. $T->insert('end', "1. Message boxes.\n", [qw/demo demo-msgBox/]);
  218. #$T->insert('end', "2. File selector.\n", [qw/demo demo-fselect/]);
  219. $T->insert('end', "2. File selection dialog.\n",  [qw/demo demo-filebox/]);
  220. $T->insert('end', "3. Color picker.\n",  [qw/demo demo-clrpick/]);
  221.  
  222. $T->insert('end', "\n", '', "Simulations\n", 'title');
  223. $T->insert('end', "1. Balls bouncing in a cavity.\n", [qw/demo demo-bounce/]);
  224.  
  225. $T->insert('end', "\n", '', "Miscellaneous\n", 'title');
  226. $T->insert('end', "1. The built-in bitmaps.\n", [qw/demo demo-bitmaps/]);
  227. $T->insert('end', "2. A dialog box with a local grab.\n",
  228.     [qw/demo demo-dialog1/]);
  229. $T->insert('end', "3. A dialog box with a global grab.\n",
  230.     [qw/demo demo-dialog2/]);
  231.  
  232. $T->insert('end', "\n", '', "User Contributed Demonstrations\n", 'title');
  233. opendir(C, $WIDTRIB) or warn "Cannot open $WIDTRIB: $!";
  234. my(@dirent) = grep /^.+\.pl$/, sort(readdir C);
  235. closedir C;
  236. unshift @dirent, 'TEMPLATE.pl';    # I want it first
  237. my $i = 0;
  238. while ($_ = shift @dirent) {
  239.     next if /TEMPLATE\.pl/ and $i != 0;
  240.     unless (open(C, "$WIDTRIB/$_")) {
  241.     warn "Cannot open $_: $!" unless /TEMPLATE\.pl/;
  242.     next;
  243.     }
  244.     my($name) = /^(.*)\.pl$/;
  245.     $_ = <C>;
  246.     my($title) = /^#\s*(.*)$/;
  247.     $DEMO_DESCRIPTION{$name} = $title;
  248.     close C;
  249.     $T->insert('end', ++$i . ". $title\n", ['demo', "demo-$name"]);
  250. }
  251.  
  252. # Create all the dialogs required by this demonstration.
  253.  
  254. my $DIALOG_ABOUT = $MW->Dialog(
  255.     -title          => 'About widget',
  256.     -bitmap         => 'info',
  257.     -default_button => 'OK',
  258.     -buttons        => ['OK'],
  259.     -text           => "         widget\n\nPerl Version $]" .
  260.                "\nTk Version $Tk::VERSION\n\n      2000/07/07",
  261. );
  262. $help->cget(-menu)->entryconfigure('About',
  263.     -command => [$DIALOG_ABOUT => 'Show'],
  264. );
  265.  
  266. my $DIALOG_ICON = $MW->Dialog(
  267.     -title          => 'Bitmap Menu Entry',
  268.     -bitmap         => undef,
  269.     -default_button => 'OK',
  270.     -buttons        => ['OK'],
  271.     -text           => 'The menu entry you invoked displays a bitmap rather than a text string.  Other than this, it is just like any other menu entry.',
  272. );
  273. $DIALOG_ICON->configure(-bitmap => undef); # keep -w from complaining
  274.  
  275. MainLoop;
  276.  
  277. sub AUTOLOAD {
  278.  
  279.     # This routine handles the loading of most demo methods.
  280.  
  281.     my($demo) = @_;
  282.  
  283.     $T->Busy;
  284.     {
  285.     $DEMO_FILE = "$WIDTRIB/${demo}.pl" if -f "$WIDTRIB/${demo}.pl";
  286.     $DEMO_FILE = "$widget_lib/${demo}.pl" if -f "$widget_lib/${demo}.pl";
  287.     do $DEMO_FILE;
  288.     warn $@ if $@;
  289.     }
  290.     $T->Unbusy;
  291.     goto &$::AUTOLOAD if defined &$::AUTOLOAD;
  292.  
  293. } # end AUTOLOAD
  294.  
  295. sub invoke {
  296.  
  297.     # This procedure is called when the user clicks on a demo description.
  298.  
  299.     my($text) = @_;
  300.  
  301.     my $index = $text->index('current');
  302.     my @tags = $T->tagNames($index);
  303.     my $i = lsearch('demo\-.*', @tags);
  304.     return if $i < 0;
  305.     my($demo) = $tags[$i] =~ /demo-(.*)/;
  306.     $T->tagAdd('visited', "$index linestart", "$index lineend");
  307.     {
  308.     no strict 'refs';
  309.     &$demo($demo);
  310.     }
  311.  
  312. } # end invoke
  313.  
  314. sub lsearch {
  315.  
  316.     # Search the list using the supplied regular expression and return it's
  317.     # ordinal, or -1 if not found.
  318.  
  319.     my($regexp, @list) = @_;
  320.     my($i);
  321.  
  322.     for ($i=0; $i<=$#list; $i++) {
  323.         return $i if $list[$i] =~ /$regexp/;
  324.     }
  325.     return -1;
  326.  
  327. } # end lsearch
  328.  
  329. sub see_code {
  330.  
  331.     # This procedure creates a toplevel window that displays the code for
  332.     # a demonstration and allows it to be edited and reinvoked.
  333.  
  334.     my($demo) = @_;
  335.  
  336.     my $file = "${demo}.pl";
  337.     if (not Exists $CODE) {
  338.     $CODE = $MW->Toplevel;
  339.     my $code_buttons = $CODE->Frame;
  340.     $code_buttons->pack(qw/-side bottom -fill x/);
  341.     my $code_buttons_dismiss = $code_buttons->Button(
  342.             -text    => 'Dismiss',
  343.             -command => [$CODE => 'withdraw'],
  344.     );
  345.     $CODE_RERUN = $code_buttons->Button(-text => 'Rerun Demo');
  346.     $CODE_TEXT = $CODE->Scrolled('Text',
  347.                      qw/-scrollbars e -height 40 -setgrid 1/);
  348.     $code_buttons_dismiss->pack(qw/-side left -expand 1/);
  349.     $CODE_RERUN->pack(qw/-side left -expand 1/);
  350.     $CODE_TEXT->pack(qw/-side left -expand 1 -fill both/);
  351.     } else {
  352.     $CODE->deiconify;
  353.     $CODE->raise;
  354.     }
  355.     $CODE_RERUN->configure(-command => sub {
  356.     eval $CODE_TEXT->get(qw/1.0 end/);
  357.     {
  358.         no strict 'refs';
  359.         &$demo($demo);
  360.     }
  361.     });
  362.     $CODE->iconname($file);
  363.     $file = "$WIDTRIB/${demo}.pl" if -f "$WIDTRIB/${demo}.pl";
  364.     $file = "$widget_lib/${demo}.pl" if -f "$widget_lib/${demo}.pl";
  365.     $CODE->title("Demo code: $file");
  366.     $CODE_TEXT->delete(qw/1.0 end/);
  367.     open(CODE, "<$file") or warn "Cannot open demo file $file: $!";
  368.     {
  369.     local $/ = undef;
  370.     $CODE_TEXT->insert('1.0', <CODE>);
  371.     }
  372.     close CODE;
  373.     $CODE_TEXT->markSet(qw/insert 1.0/);
  374.  
  375. } # end see_code
  376.  
  377. sub see_vars {
  378.  
  379.     # Create a top-level window that displays a bunch of global variable values
  380.     # and keeps the display up-to-date even when the variables change value.
  381.     # $args is a pointer to a list of list of 2:
  382.     #
  383.     #   ["variable description", \$VAR]
  384.     #
  385.     # The old trick of passing a string to serve as the description and a soft
  386.     # reference to the variable no longer works with lexicals and use strict.
  387.  
  388.     my($parent, $args) = @_;
  389.  
  390.     $VARS->destroy if Exists($VARS);
  391.     $VARS = $parent->Toplevel;
  392.     $VARS->geometry('+300+300');
  393.     $VARS->title('Variable Values');
  394.     $VARS->iconname('Variables');
  395.  
  396.     my $title = $VARS->Label(
  397.         -text   => 'Variable Values:',
  398.         -width  => 20,
  399.         -anchor => 'center',
  400.         -font   => '-*-helvetica-medium-r-normal--*-180-*-*-*-*-*-*',
  401.     );
  402.     $title->pack(qw/-side top -fill x/);
  403.     my($label, $var);
  404.     foreach my $i (@$args) {
  405.     ($label, $var) = @$i;
  406.     my $wf = $VARS->Frame->pack(qw/-anchor w/);
  407.     $wf->Label(-text => "$label: ")->pack(qw/-side left/);
  408.     $wf->Label(-textvariable => $var)->pack(qw/-side left/);
  409.     }
  410.     $VARS->Button(-text => 'OK', -command => [$VARS => 'destroy'])->
  411.         pack(qw/-side bottom -pady 2/);
  412.  
  413. } # end see_vars
  414.  
  415. sub show_stat {
  416.  
  417.     # Display name of current demonstration.  $sv is a reference to the
  418.     # status Label -textvariable, $text is the Text widget reference and
  419.     # $index is the demonstration index in the Text widget.
  420.  
  421.     my($sv, $text, $index) = @_;
  422.  
  423.     my @tags = $text->tagNames($index);
  424.     my $i = lsearch('demo\-.*', @tags);
  425.     return if $i < 0;
  426.     my($demo) = $tags[$i] =~ /demo-(.*)/;
  427.     $$sv = "Click Button-1 to run the \"$demo\" demonstration.";
  428.  
  429. } # end show_stat
  430.  
  431. sub view_widget_code {
  432.  
  433.     # Expose a file's innards to the world too, but only for viewing.
  434.  
  435.     my($widget) = @_;
  436.  
  437.     if (not Exists $VIEW) {
  438.     $VIEW = $MW->Toplevel;
  439.     $VIEW->iconname('widget');
  440.     my $view_buttons = $VIEW->Frame;
  441.     $view_buttons->pack(qw/-side bottom -expand 1 -fill x/);
  442.     my $view_buttons_dismiss = $view_buttons->Button(
  443.             -text    => 'Dismiss',
  444.             -command => [$VIEW => 'withdraw'],
  445.     );
  446.     $view_buttons_dismiss->pack(qw/-side left -expand 1/);
  447.     $VIEW_TEXT = $VIEW->Scrolled('Text',
  448.                      qw/-scrollbars e -height 40 -setgrid 1/);
  449.     $VIEW_TEXT->pack(qw/-side left -expand 1 -fill both/);
  450.     } else {
  451.     $VIEW->deiconify;
  452.     $VIEW->raise;
  453.     }
  454.     $VIEW->title("Demo code: $widget");
  455.     $VIEW_TEXT->configure(qw/-state normal/);
  456.     $VIEW_TEXT->delete(qw/1.0 end/);
  457.     open(VIEW, "<$widget") or warn "Cannot open demo file $widget: $!";
  458.     {
  459.     local $/ = undef;
  460.     $VIEW_TEXT->insert('1.0', <VIEW>);
  461.     }
  462.     close VIEW;
  463.     $VIEW_TEXT->markSet(qw/insert 1.0/);
  464.     $VIEW_TEXT->configure(qw/-state disabled/);
  465.  
  466. } # end view_widget_code
  467.  
  468. __END__
  469.  
  470. =head1 NAME
  471.  
  472. widget - Demonstration of Perl/Tk widgets
  473.  
  474. =head1 SYNOPSYS
  475.  
  476.   widget [ directory ]
  477.  
  478. =head1 DESCRIPTION
  479.  
  480. This script demonstrates the various widgets provided by Tk, along with
  481. many of the features of the Tk toolkit.  This file only contains code to
  482. generate the main window for the application, which invokes individual
  483. demonstrations.  The code for the actual demonstrations is contained in
  484. separate ".pl" files in the "widget_lib" directory, which are autoloaded
  485. by this script as needed.
  486.  
  487. widget looks in the directory specified on the command line to load user
  488. contributed demonstrations.  If no directory name is specified when widget is
  489. invoked and the environment variable WIDTRIB is defined then demonstrations
  490. are loaded from the WIDTRIB directory. If WIDTRIB is undefined then widget
  491. defaults to the released user contributed directory, "widtrib".
  492.  
  493. =head2 History
  494.  
  495.  #
  496.  # Stephen O. Lidie, LUCC, 96/03/11.  lusol@Lehigh.EDU
  497.  # Stephen O. Lidie, LUCC, 97/01/01.  lusol@Lehigh.EDU
  498.  # Stephen O. Lidie, LUCC, 97/02/11.  lusol@Lehigh.EDU
  499.  # Stephen O. Lidie, LUCC, 97/06/07.  lusol@Lehigh.EDU
  500.  #     Update for Tk402.00x.  Total revamp:  WidgetDemo, Scrolled, released
  501.  #     composites, -menuitems, qw//, etcetera.  Perl 5.004 required.
  502.  # Stephen O. Lidie, LUCC, 98/03/10.  lusol@Lehigh.EDU
  503.  #     Update for Tk8.
  504.  # Stephen O. Lidie, LUCC, 98/06/26.  Stephen.O.Lidie@Lehigh.EDU
  505.  #     Add Common Dialogs for Tk800.007.
  506.  # Stephen.O.Lidie@Lehigh.EDU, 1999/11/29, Lehigh University.
  507.  #     Demo some "dash patch" changes.
  508.  # Stephen.O.Lidie@Lehigh.EDU, 2000/01/11, Lehigh University.
  509.  #     Update menubar to Tk 8, fix color palette Menubutton demo.
  510.  # Stephen.O.Lidie@Lehigh.EDU, 2000/07/06, Lehigh University.
  511.  #     Remove inswt() from widget and styles.pl to show the proper Perl/Tk
  512.  #     idiom for inserting Text tags.  Various and sundry cleanups.
  513.  
  514. =head1 AUTHOR
  515.  
  516. Steve Lidie <Stephen.O.Lidie@Lehigh.EDU>
  517.  
  518. =cut
  519.  
  520. __END__
  521. :endofperl
  522.