tkinter.ttk.Notebook.index()

index(tab_id) Returns the numeric index of the tab specified by tab_id, or the total number of tabs if tab_id is the string “end”.

ssl.PROTOCOL_SSLv23

ssl.PROTOCOL_SSLv23 Selects the highest protocol version that both the client and server support. Despite the name, this option can select “TLS” protocols as well as “SSL”.

readline.get_completer_delims()

readline.get_completer_delims() Set or get the word delimiters for completion. These determine the start of the word to be considered for completion (the completion scope). These functions access the rl_completer_word_break_characters variable in the underlying library.

asyncio.Task.current_task()

classmethod current_task(loop=None) Return the currently running task in an event loop or None. By default the current task for the current event loop is returned. None is returned when called not in the context of a Task.

textwrap.TextWrapper.max_lines

max_lines (default: None) If not None, then the output will contain at most max_lines lines, with placeholder appearing at the end of the output. New in version 3.4.

curses.color_pair()

curses.color_pair(color_number) Return the attribute value for displaying text in the specified color. This attribute value can be combined with A_STANDOUT, A_REVERSE, and the other A_* attributes. pair_number() is the counterpart to this function.

tokenize.open()

tokenize.open(filename) Open a file in read only mode using the encoding detected by detect_encoding(). New in version 3.2.

tkinter.ttk.Treeview.exists()

exists(item) Returns True if the specified item is present in the tree.

symbol.sym_name

symbol.sym_name Dictionary mapping the numeric values of the constants defined in this module back to name strings, allowing more human-readable representation of parse trees to be generated.

tkinter.ttk.Style.configure()

configure(style, query_opt=None, **kw) Query or set the default value of the specified option(s) in style. Each key in kw is an option and each value is a string identifying the value for that option. For example, to change every default button to be a flat button with some padding and a different background color: from tkinter import ttk import tkinter root = tkinter.Tk() ttk.Style().configure("TButton", padding=6, relief="flat", background="#ccc") btn = ttk.Button(text="Sample") btn.