| Previous | Next
Widget's IDYou use the $id = $widget->id; print "$id\n"; # Prints 0x9c944c This returns a hex value. A common use for this method is to embed a Tk window in another application. The PerlPlus Netscape plug-in does just this. It is described in "Perl/Tk and the Web". Widget's PathName From Its X11 IDYou can get the $path = $widget->pathname($id); |