MCPcopy Index your code
hub / github.com/python/cpython / enable_traversal

Method enable_traversal

Lib/tkinter/ttk.py:889–912  ·  view source on GitHub ↗

Enable keyboard traversal for a toplevel window containing this notebook. This will extend the bindings for the toplevel window containing this notebook as follows: Control-Tab: selects the tab following the currently selected one

(self)

Source from the content-addressed store, hash-verified

887
888
889 def enable_traversal(self):
890 """Enable keyboard traversal for a toplevel window containing
891 this notebook.
892
893 This will extend the bindings for the toplevel window containing
894 this notebook as follows:
895
896 Control-Tab: selects the tab following the currently selected
897 one
898
899 Shift-Control-Tab: selects the tab preceding the currently
900 selected one
901
902 Alt-K: where K is the mnemonic (underlined) character of any
903 tab, will select that tab.
904
905 Multiple notebooks in a single toplevel may be enabled for
906 traversal, including nested notebooks. However, notebook traversal
907 only works properly if all panes are direct children of the
908 notebook."""
909 # The only, and good, difference I see is about mnemonics, which works
910 # after calling this method. Control-Tab and Shift-Control-Tab always
911 # works (here at least).
912 self.tk.call("ttk::notebook::enableTraversal", self._w)
913
914
915class Panedwindow(Widget, tkinter.PanedWindow):

Callers 2

create_widgetsMethod · 0.95
test_traversalMethod · 0.80

Calls 1

callMethod · 0.45

Tested by 1

test_traversalMethod · 0.64