Group: comp.lang.tcl


Subject: ttk::notebook: order of panes
From: ZB
Date: 12/10/2007 7:41:22 PM
Again about ttk::notebook: The panes are indexed by integers, starting from 0 - I would to use words rather, it's easier to find out later, what pane has what contents. As I can see, "winfo children" orders the panes on the returned list exactly as the ".path index current" sees the order. But is it "fixed" for steady? Will it always be so (no info in docs)? I would to recognize a full path of selected pane by combining "winfo children" and "index". And one more thing: when trying to interactively get number of selected pane, I noticed, that it's always returning a "0" in the case, if there is _no_ pane selected at all. Shouldn't this be changed to "-1" rather? "0" is a valid index; in the case, when there's no pane selected, no valid index should be returned. -- ZB