http://qs321.pair.com?node_id=11121215


in reply to Navigation and Focus - Tk Notebook Widget tabs (UPDATED)

UPDATE -- Fixed the lack of focus problem by calling "$more1->focus;" after "more1->Load( $0 );", and likewise for $more2 and $more3.

"It's not how hard you work, it's how much you get done."

  • Comment on Re: Navigation and Focus - Tk Notebook Widget tabs

Replies are listed 'Best First'.
Re^2: Navigation and Focus - Tk Notebook Widget tabs
by perlfan (Vicar) on Aug 31, 2020 at 23:28 UTC
    I found this by searching for tk gui tab order. I suspect a similar concept may apply here, but not sure. The answer is probably Tk specific since Tk is just an interface to the gui library.
      Thanks for checking perlfan. I realize the stackoverflow post is for Python, but there does not appear to be a single Tk equivalent.

      I have been reading the docs for Tk::NoteBook, Tk::bind, Tk::bindtags, and Tk::callbacks. The answer to navigating Notebook widget tabs with the keyboard TAB key may lie in a combination of these Tk modules, but there are no clear end-to-end examples in the docs.

      "It's not how hard you work, it's how much you get done."