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

Is the Widget Mapped?

To find out if the widget has been mapped to the screen, use the ismapped method:

if ($widget->ismapped)
  # Do something
} else {
  # map the widget
}

The ismapped method returns 1 if the widget is currently mapped to the screen and 0 if it is not.

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