Tk::IconList(3pm)

Tk::IconList3pm

An icon list widget

Usage

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

Overview

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).

Releases

12 releases since Debian 3.1 (Sarge); the text changed 11 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9
  8. 10
  9. 11
  10. 12
  11. 13
  12. Arch

-browsecmd since Debian 6.0 (Squeeze); -command since Debian 6.0 (Squeeze); -font since Debian 6.0 (Squeeze).

From perl-tk 804.036-9 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.