widget full path name?

From: Ron Stanonik <stanonik_at_cogsci.ucsd.edu>
Date: Wed, 12 Jul 2000 13:50:45 -0700

Sorry if this is a newbie question.

Given a widget, I need the full pathname of the widget.
For example,

STk> w
#[Tk-command .draw.modes.pointer]

I need the full pathname of w as a string, that is ".draw.modes.pointer".

STk>(winfo 'name w)
"pointer"

only gives the name within the parent.

I could write something which follows the parents upward to
build the full pathname, but surely there is simple command
which yields it, given the widget.

Thanks,

Ron Stanonik
stanonik_at_cogsci.ucsd.edu
Received on Wed Jul 12 2000 - 22:50:50 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST