Re: Idea for new ttk Notebook virtual event



Adrian Davis wrote:
How about a "<<NotebookTabSelected>>" virtual event. The existing
"<<NotebookTabChanged>>" is only generated when a new/different tab is
selected - "<<NotebbokTabSelected>>" would be generated even if the
currently selected tab is selected.
For example: this would be a neat way invoke a refresh of the current
pane contents without the need another "refresh" button/widget.
The Tile (aka ::ttk::notebook) already has something that is functionally
equivalent, although with a different name: <<NotebookTabChanged>>


The problem is that the "<<NotebookTabChanged>>" event is only
generated when a different tab is selected. It isn't generated when
the tab which is already selected is selected again. This is why I've
suggested a "<<NotebookTabSelected>>" event which would be generated
when any of the tabs are selected - Not just a different tab.

How do you select something that is already selected?

I take it you want an event generated whenever the tab is clicked on?

If you are going to use that for a refresh as stated, IMHO that is a far less intuitive interface than a refresh button or menu item.


--
+------------------------------------------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.


Quantcast