O'Reilly logo

Mastering Perl/Tk by Nancy Walsh, Stephen Lidie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Miscellaneous Image Methods

Here is a list of miscellaneous image methods:

$widget->Getimage( image_name )

Scans the images used by the MainWindow for an image, and @INC if the image is not already loaded, with the specified name and returns the Perl/Tk image reference. Search order is XPM, GIF, PPM, BMP, XBM. If an image is not located, the search continues with the built-in image names.

$widget->imageNames

Returns a list of image names used by the MainWindow. Currently, these names are the actual image references. (Not available as an image method.)

$widget->imageTypes

Returns a list of the image types currently used by the MainWindow, not the available image types. An image type appears in this list only if at least one instance has been created. (Not available as an image method.)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required