|
From: Jeff H. <je...@ac...> - 2006-09-17 22:43:32
|
Joe English wrote: > Recently, Pat added an "identify" method to all Tile widgets > that previously lacked one. Usage is: [$w identify $x $y], > which returns the name of the element at $x,$y. This is useful Maybe 'element' would be a better name them? > For [ttk::paned], the 'identify' method returns a two-element > list containing the index of the sash at $x,$y followed by > the name of the sash element. (At least that's how it's > documented -- in reality the element name lookup is > Not Yet Implemented. This would be useful for e.g., > sashes with "collapse" and "expand" buttons.) 2 points - this *really* needs to be renamed ttk::panedwindow, and collapseable sashes would be cool. > For [ttk::treeview], the 'identify' method is a hairball > and needs to be revised anyway. but it is an important method. > So my question: should the ttk::notebook 'identify' method > be changed to work like the ttk::paned widget (how it's > documented, that is, not how it's currently implemented)? > Or is it worthwhile to make [$w identify] consistent across > all widget classes like 'configure', 'cget', and 'state' are? My $.02 are make ttk::notebook have a useful identify method (or call it something else), as I also think the identify/element method should be consistent across themed widgets. At this point, I'm more inclined towards the 'element' method name, as that is rare in other widgets (the treectrl has one). Jeff |