"\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', 'bold', " button to see the Perl/Tk code that created the demonstration. If you wish, you can edit the code and click the ", '', "Rerun Demo", 'bold', " button in the code window to reinvoke the demonstration with the modified code.\n"
);
demos 'Getting Started', (
'hello' => 'An introduction to Perl/Tk',
);
demos 'Labels, buttons, checkbuttons, and radiobuttons', (
'labels' => 'Labels (text and images)',
'unicodeout' => 'Labels and Unicode text',
'button' => 'Buttons',
'check' => 'Checkbuttons (select any of a group)',
'radio' => 'Radiobuttons (select one of a group)',
'puzzle' => 'A 15-puzzle game made out of buttons',
'icon' => 'Iconic buttons that use bitmaps',
'image1' => 'Two labels displaying images',
'image2' => 'A simple user interface for viewing images',
'labelframe' => 'Labelled frames',
);
demos 'Listboxes', (
'states' => 'The 50 states',
'colors' => 'Change widget\'s color scheme',
'sayings' => 'A collection of famous and infamous sayings',
);
demos 'Entries and Spin-boxes', (
'entry1' => 'Entries without scrollbars',
'entry2' => 'Entries with scrollbars',
'entry3' => 'Validated entries and password fields',
'spin' => 'Spin-boxes',
'form' => 'Simple Rolodex-like form',
);
demos 'Text', (
'texts' => 'Basic editable text',
'style' => 'Text display styles',
'bind' => 'Hypertext (tag bindings)',
'twind' => 'A text widget with embedded windows',
'search' => 'A search tool built with a text widget',
);
demos 'Canvases', (
'items' => 'The canvas item types',
'plot' => 'A simple 2-D plot',
'ctext' => 'Text items in canvases',
'arrows' => 'An editor for arrowheads on canvas lines',
'ruler' => 'A ruler with adjustable tab stops',
'floor' => 'A building floor plan',
'cscroll' => 'A simple scrollable canvas',
'transtile' => 'Tiles and transparent images',
);
demos 'Scales', (
'hscale' => 'Horizontal scale',
'vscale' => 'Vertical scale',
);
demos 'Paned Windows', (
'paned1' => 'Horizontal paned window',
'paned2' => 'Vertical paned window',
);
demos 'Photos and Images', (
'photo1' => 'Transparent pixels',
'photo2' => 'Alpha channel compositing',
);
demos 'Menus', (
'menus' => 'Menus and cascades (sub-menus)',
'menus2' => 'As above, but using Perl/Tk -menuitems',
'menbut' => 'Menubuttons',
);
demos 'Common Dialogs', (
'msgBox' => 'Message boxes',
'filebox' => 'File selection dialog',
'choosedir' => 'Directory selection dialog',
'clrpick' => 'Color picker',
);
demos 'Tix Widgets', (
'balloon' => 'Popup help window when mouse lingers over widget',
'browseentry' => 'Entry with Listbox to select list values',
'browseentry2' => 'Another BrowseEntry example',
'dirtree' => 'Display a directory tree',
'form_mgr' => 'The form geometry manager',
'HList' => 'A hierarchical listbox widget',
'HList2' => 'Multicolumn listbox with individual cell styles',
'labframe' => 'A Frame with embedded label',
);
demos 'Simulations', (
'bounce' => 'Balls bouncing in a cavity',
);
demos 'Sample Perl Mega-Widgets', (
'mega' => 'Introduction to writing pure Perl mega-widgets',