Tk::WidgetDemo - create a standard widget demonstration window.
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, );
User Contributed Perl Documentation WidgetDemo(3)
NAME
Tk::WidgetDemo - create a standard widget demonstration window.
SYNOPSIS
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,
);
DESCRIPTION
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/],
AUTHOR
Steve Lidie <Stephen.O.Lidie@Lehigh.EDU>
HISTORY
lusol@Lehigh.EDU, LUCC, 97/02/11 lusol@Lehigh.EDU, LUCC, 97/06/07
Stephen.O.Lidie@Lehigh.EDU, 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.
COPYRIGHT
Copyright (C) 1997 - 1998 Stephen O. Lidie. All rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+----------------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+----------------------------+
|Availability | library/perl-5/perl-tk-532 |
+---------------+----------------------------+
|Stability | Volatile |
+---------------+----------------------------+
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from
http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Tk-804.036.tar.gz.
Further information about this software can be found on the open source
community website at http://search.cpan.org/~srezic/Tk.
perl v5.32.0 2013-11-15 WidgetDemo(3)