Michael,

Thank you so much for your example!!

Re: Detect mouse events on tabs. The trick for me was understanding how
to use the index method. Your technique below is exactly the solution I
was looking for (I wasn't aware of the '@%d,%d' formatting technique).

index = event.widget.index('@%d,%d' % (event.x, event.y))

Re: Detect when a tab caption has keyboard focus (<FocusIn> or similar).

The <<NotebookTabChanged>> does not correspond to the tab caption
gaining keyboard focus.

And the notebook widget generates a single <FocusIn> event when it gets
focus.

Is there a way to drill-down to the Tk label controls in the captions
and bind to their <FocusIn> events? Or is there a way to expose the tabs
as actual widgets whose events can be bound to?

Thanks again for all your help in these forums!

Malcolm
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to