Another roll your own technique would be to use a canvas and add the 'thumbnails' as embedded widgets. Here is an example (excerpt) that creates a 'static' sort, but you can imagine adding arbitrary images dynamically. This example also show how to associate callbacks when the 'thumbnails' are clicked.
my ($img_config,$img_control,$img_help,$img_vocabulary); $img_config=$panel_canvas->Photo(-file=>LIB_PATH."/Perlbox/pixels/conf +ig.gif"); $img_control=$panel_canvas->Photo(-file=>LIB_PATH."/Perlbox/pixels/con +trol.gif"); $img_help=$panel_canvas->Photo(-file=>LIB_PATH."/Perlbox/pixels/help.g +if"); $img_vocabulary=$panel_canvas->Photo(-file=>LIB_PATH."/Perlbox/pixels/ +vocabulary.gif"); $lbl_control=$panel_canvas->Label(-text=>"Control",-bg=>'#ffffff',-fg= +>'#2c6997',-relief=>'flat'); $panel_canvas->createWindow(15,65, -window=>$lbl_control, anchor=>'nw' +,-width=>54,-height=>15); $lbl_vocabulary=$panel_canvas->Label(-text=>"Vocab",-bg=>'#ffffff', -f +g=>'#2c6997', -relief=>'flat'); $panel_canvas->createWindow(15,145,-window=>$lbl_vocabulary, -anchor=> +'nw',-width=>54,-height=>15); $lbl_config=$panel_canvas->Label(-text=>"Config",-bg=>'#ffffff', -fg=> +'#2c6997' ,-relief=>'flat'); $panel_canvas->createWindow(15,225, -window=>$lbl_config, -anchor=>'nw +',-width=>54,-height=>15); $lbl_help=$panel_canvas->Label(-text=>"Help",-bg=>'#ffffff', -fg=>'#2c +6997' ,-relief=>'flat'); $panel_canvas->createWindow(15,305, -window=>$lbl_help, -anchor=>'nw', +-width=>54,-height=>15);

For the full source, download Perlbox-Voice from Perlbox.org

"Never take yourself too seriously, because everyone knows that fat birds dont fly" -FLC

In reply to Re: Perl/Tk widget for displaying images and thumbnails by scmason
in thread Perl/Tk widget for displaying images and thumbnails by biochris

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.