Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tk::iconlist(3) [centos man page]

IconList(3)						User Contributed Perl Documentation					       IconList(3)

NAME
Tk::IconList - an icon list widget SYNOPSIS
use Tk::IconList; $il = $mw->IconList(-browsecmd => sub { ... }, -command => sub { ... })->pack; $il->Add($icon1, $text1); $il->Add($icon2, $text2); $il->Arrange; ... $il->DeleteAll; 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). COPYRIGHT
The original tkfbox.tcl from Tcl/Tk is: Copyright (c) 1994-1996 Sun Microsystems, Inc. See the file "license.terms" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. Translated to Perl/Tk by Slaven Rezic <srezic@cpan.org>. SEE ALSO
Tk::FBox. perl v5.16.3 2014-06-10 IconList(3)

Check Out this Related Man Page

FBox(3) 						User Contributed Perl Documentation						   FBox(3)

NAME
Tk::FBox - a file dialog SYNOPSIS
use Tk::FBox; $file = $mw->FBox(...)->Show; DESCRIPTION
"Tk::FBox" is the dialog implementation behind the "getOpenFile", "getSaveFile", and "chooseDirectory" method calls in the Unix/X11 world. As such, it supports all options for these methods and additionally: -sortcmd => sub { $_[0] cmp $_[1] } Specified a callback for changing the sorting of the icons in the "IconList" widget. By default, perl's "cmp" operator will be used. From the source code: # Using -sortcmd is really strange :-( # $top->getOpenFile(-sortcmd => sub { package Tk::FBox; uc $b cmp uc $a}); # or, un-perlish, but useable (now activated in code): # $top->getOpenFile(-sortcmd => sub { uc $_[1] cmp uc $_[0]}); This is an experimental option! -type => $type Type should be "open" for choosing existing files to open (default), "save" for choosing existing or non-existing files to save, or "dir" for choosing directories. -filter => $glob A file glob to restrict displayed files. This is only active if no -filetypes are defined. -force => $bool If true, then there will be no dialog if a file already exists. COPYRIGHT
The original tkfbox.tcl from Tcl/Tk is: Copyright (c) 1994-1996 Sun Microsystems, Inc. See the file "license.terms" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. Translated to Perl/Tk by Slaven Rezic <srezic@cpan.org>. SEE ALSO
Tk::getOpenFile, Tk::IconList. perl v5.12.1 2007-05-05 FBox(3)
Man Page