Go to main content

man pages section 1: User Commands

Exit Print View

Updated: July 2017

widget (1)


widget - Demonstration of Perl/Tk widgets


Please see following description for synopsis


WIDGET(1)                    perl/Tk Documentation                   WIDGET(1)

       widget - Demonstration of Perl/Tk widgets

         widget [ directory ]

       This script demonstrates the various widgets provided by Tk, along with
       many of the features of the Tk toolkit.  This file only contains code
       to generate the main window for the application, which invokes
       individual demonstrations.  The code for the actual demonstrations is
       contained in separate ".pl" files in the "widget_lib" directory, which
       are autoloaded by this script as needed.

       widget looks in the directory specified on the command line to load
       user contributed demonstrations.  If no directory name is specified
       when widget is invoked and the environment variable WIDTRIB is defined
       then demonstrations are loaded from the WIDTRIB directory. If WIDTRIB
       is undefined then widget defaults to the released user contributed
       directory, "widtrib".

        # Stephen O. Lidie, LUCC, 96/03/11.  lusol@Lehigh.EDU
        # Stephen O. Lidie, LUCC, 97/01/01.  lusol@Lehigh.EDU
        # Stephen O. Lidie, LUCC, 97/02/11.  lusol@Lehigh.EDU
        # Stephen O. Lidie, LUCC, 97/06/07.  lusol@Lehigh.EDU
        #     Update for Tk402.00x.  Total revamp:  WidgetDemo, Scrolled, released
        #     composites, -menuitems, qw//, etcetera.  Perl 5.004 required.
        # Stephen O. Lidie, LUCC, 98/03/10.  lusol@Lehigh.EDU
        #     Update for Tk8.
        # Stephen O. Lidie, LUCC, 98/06/26.  Stephen.O.Lidie@Lehigh.EDU
        #     Add Common Dialogs for Tk800.007.
        # Stephen.O.Lidie@Lehigh.EDU, 1999/11/29, Lehigh University.
        #     Demo some "dash patch" changes.
        # Stephen.O.Lidie@Lehigh.EDU, 2000/01/11, Lehigh University.
        #     Update menubar to Tk 8, fix color palette Menubutton demo.
        # Stephen.O.Lidie@Lehigh.EDU, 2000/07/06, Lehigh University.
        #     Remove inswt() from widget and styles.pl to show the proper Perl/Tk
        #     idiom for inserting Text tags.  Various and sundry cleanups.
        # sol0@lehigh.edu, 2003/07/29, Lehigh University Computing Center.
        #     Update for Tk 8.4.4.

       Steve Lidie <sol0@Lehigh.EDU>

       See attributes(5) for descriptions of the following attributes:

       |Availability   | library/perl5/perl-tk-522 |
       |Stability      | Volatile                  |
       This software was built from source available at
       https://java.net/projects/solaris-userland.  The original community
       source was downloaded from

       Further information about this software can be found on the open source
       community website at http://search.cpan.org/~srezic/Tk.

Tk804.033                         2013-11-15                         WIDGET(1)