Skip to main content

get_tab

Get a tab by name. If the tab does not exist, create it.

def get_tab(name: str, /, create_if_missing: bool = True) -> Tab: ...

Get a tab by name. If the tab does not exist, create it.

Parameters​

NameTypeDescription
namestrThe unique identifier for the tab to retrieve or create.
create_if_missingbool = TrueDetermines whether a new tab should be initialized if one with the specified name is not found.

Returns​

TypeDescription
TabThe tab object associated with the provided name.