logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Tk::IconList - an icon list widget

Description

OPTIONS
       -browsecmd
       -command
       -font
           -item -foreground|-fg

   METHODS
       DeleteAll
           Deletes all the items inside the canvas subwidget and reset the IconList's state.

       Add($image, $text)
           Adds an icon into the IconList with the designated image and text.

       Arrange
           Places the icons in a column-major arrangement.

       Get Return the selected item.

       Invoke
           Gets  called  when  the  user invokes the IconList (usually by double-clicking or pressing the Return
           key) (internal method).

       See($tag)
           If the item is not (completely) visible, scroll the canvas  so  that  it  becomes  visible  (internal
           method).

Name

       Tk::IconList - an icon list widget

See Also

       Tk::FBox.

perl v5.40.1                                       2025-04-13                                      IconList(3pm)

Synopsis

           use Tk::IconList;
           $il = $mw->IconList(-browsecmd => sub { ... },
                               -command   => sub { ... })->pack;
           $il->Add($icon1, $text1);
           $il->Add($icon2, $text2);
           $il->Arrange;
           ...
           $il->DeleteAll;

See Also