beetlebug▾
/

winfo pathname

Gives the widget of an identifier of winfo id.

winfo pathname ?-displayof WINDOW? ID

Description

ID is a value of winfo id. An ID of no widget of the application gives an error.

Returns

A widget name.

Examples

% frame .pn
> winfo pathname [winfo id .pn]
.pn

Errors

% winfo pathname 0x1
window id "0x1" doesn't exist in this application
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1