Tk::WidgetDemo(3pm)

Tk::WidgetDemo3pm

Create a standard widget demonstration window.

Usage

 use WidgetDemo;
 my $TOP = $MW->WidgetDemo(
     -name             => $demo,
     -text             => 'Learn how to write a widget demonstration!',
     -title            => 'WidgetDemo Demonstration',
     -iconname         => 'WidgetDemo',
     -geometry_manager => 'grid',
     -font             => $FONT,
 );

Overview

This constructor builds a standard widget demonstration window, composed of three frames. The top frame contains descriptive demonstration text. The bottom frame contains the "Dismiss" and "See Code" buttons. The middle frame is demonstration container, which came be managed by either the pack or grid geometry manager.

The -text attribute is supplied to a Label widget, which is left-adjusted with -wraplength set to 4 inches. If you require different specifications then pass an array to -text; the first element is the text string and the remaining array elements are standard Label widget attributes - WidgetDemo will rearrange things as required..

    -text => ['Hello World!', qw/-wraplength 6i/],

Releases

15 releases since Debian 2.1 (Slink); the text changed 14 times.

  1. 2.1
  2. 2.2
  3. 3.0
  4. 3.1
  5. 4.0
  6. 5.0
  7. 6.0
  8. 7
  9. 8
  10. 9
  11. 10
  12. 11
  13. 12
  14. 13
  15. Arch

Author

Steve Lidie <[email protected]>

History

[email protected], LUCC, 97/02/11 [email protected], LUCC, 97/06/07 [email protected], LUCC, 97/06/07
. Add Delegates() call that obviates the need for Top(). Many thanks to
Achim Bohnet for this patch.
. Fix -title so that it works.

From perl-tk 804.036-9 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.