The notebook widget generates a <<NotebookTabChanged>> virtual event after
a new tab is selected.
But when I try to find it:
tclsh8.5 [~/tmp]event info
<<Undo>> <<PrevWindow>> <<Redo>> <<PasteSelection>> <<Paste>> <<Copy>> <<Cut>>
...it isn't listed at all. Where is it?
--
ZB
event info returns information about virtual events that are associated
with physical event sequences. Not all virtual events are associated
with physical event sequences. Admittedly, the documentation is a bit
misleading in this regard.
For example, I could write the following in a block of code:
event generate . <<MyVirtualEvent>>
... and [event info] has no way of knowing anything about
<<MyVirtualEvent>>.
--
Bryan Oakley
http://www.tclscripting.com
> event info returns information about virtual events that are associated
> with physical event sequences. Not all virtual events are associated
> with physical event sequences. Admittedly, the documentation is a bit
> misleading in this regard.
You're right: there's no such remark in event's "info" section, unfortunately.
And yes - wherever it is, <<NotebookTabChanged>> is generated indeed.
--
ZB