{"id":6022,"date":"2022-12-20T18:57:51","date_gmt":"2022-12-20T21:57:51","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/ttknotebook-mann\/"},"modified":"2022-12-20T18:57:51","modified_gmt":"2022-12-20T21:57:51","slug":"ttknotebook-mann","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/ttknotebook-mann\/","title":{"rendered":"ttk::notebook (mann)"},"content":{"rendered":"<h1 align=\"center\">ttk::notebook<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#STANDARD OPTIONS\">STANDARD OPTIONS<\/a><br \/> <a href=\"#WIDGET-SPECIFIC OPTIONS\">WIDGET-SPECIFIC OPTIONS<\/a><br \/> <a href=\"#TAB OPTIONS\">TAB OPTIONS<\/a><br \/> <a href=\"#TAB IDENTIFIERS\">TAB IDENTIFIERS<\/a><br \/> <a href=\"#WIDGET COMMAND\">WIDGET COMMAND<\/a><br \/> <a href=\"#KEYBOARD TRAVERSAL\">KEYBOARD TRAVERSAL<\/a><br \/> <a href=\"#VIRTUAL EVENTS\">VIRTUAL EVENTS<\/a><br \/> <a href=\"#EXAMPLE\">EXAMPLE<\/a><br \/> <a href=\"#STYLING OPTIONS\">STYLING OPTIONS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#KEYWORDS\">KEYWORDS<\/a> <\/p>\n<hr>\n<p>______________________________________________________________________________<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">ttk::notebook \u2212 Multi-paned container widget<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ttk::notebook<\/b> <i>pathname<\/i> ?<i>options&#8230;<\/i>? <i><br \/> pathname<\/i> <b>add<\/b> <i>window<\/i> ?<i>options&#8230;<\/i>? <i><br \/> pathname<\/i> <b>insert<\/b> <i>index window<\/i> ?<i>options&#8230;<\/i>? ______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">A <b>ttk::notebook<\/b> widget manages a collection of windows and displays a single one at a time. Each slave window is associated with a <i>tab<\/i>, which the user may select to change the currently-displayed window.<\/p>\n<h2>STANDARD OPTIONS <a name=\"STANDARD OPTIONS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p><b>\u2212class<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212cursor<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212takefocus<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212style<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">See the <b>ttk_widget<\/b> manual entry for details on the standard options.<\/p>\n<h2>WIDGET-SPECIFIC OPTIONS <a name=\"WIDGET-SPECIFIC OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212height<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Name:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>height<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Class:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>Height<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">If present and greater than zero, specifies the desired height of the pane area (not including internal padding or tabs). Otherwise, the maximum height of all panes is used.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212padding<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Name:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>padding<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Class:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>Padding<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Specifies the amount of extra space to add around the outside of the notebook. The padding is a list of up to four length specifications <i>left top right bottom<\/i>. If fewer than four elements are specified, <i>bottom<\/i> defaults to <i>top<\/i>, <i>right<\/i> defaults to <i>left<\/i>, and <i>top<\/i> defaults to <i>left<\/i>. In other words, a list of three numbers specify the left, vertical, and right padding; a list of two numbers specify the horizontal and the vertical padding; a single number specifies the same padding all the way around the widget.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212width<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Name:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>width<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Class:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>Width<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">If present and greater than zero, specifies the desired width of the pane area (not including internal padding). Otherwise, the maximum width of all panes is used.<\/p>\n<h2>TAB OPTIONS <a name=\"TAB OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The following options may be specified for individual notebook panes:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212state<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Name:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>state<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Class:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>State<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Either <b>normal<\/b>, <b>disabled<\/b> or <b>hidden<\/b>. If <b>disabled<\/b>, then the tab is not selectable. If <b>hidden<\/b>, then the tab is not shown.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212sticky<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Name:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>sticky<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Class:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>Sticky<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Specifies how the slave window is positioned within the pane area. Value is a string containing zero or more of the characters <b>n, s, e,<\/b> or <b>w<\/b>. Each letter refers to a side (north, south, east, or west) that the slave window will \u201cstick\u201d to, as per the <b>grid<\/b> geometry manager.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212padding<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Name:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>padding<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Class:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>Padding<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Specifies the amount of extra space to add between the notebook and this pane. Syntax is the same as for the widget <b>\u2212padding<\/b> option.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212text<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Name:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>text<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Class:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>Text<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Specifies a string to be displayed in the tab.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212image<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Name:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>image<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Class:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>Image<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Specifies an image to display in the tab. See <i>ttk_widget(n)<\/i> for details.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212compound<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Name:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>compound<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Class:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>Compound<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Specifies how to display the image relative to the text, in the case both <b>\u2212text<\/b> and <b>\u2212image<\/b> are present. See <i>label(n)<\/i> for legal values.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212underline<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Name:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>underline<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Class:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>Underline<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Specifies the integer index (0-based) of a character to underline in the text string. The underlined character is used for mnemonic activation if <b>ttk::notebook::enableTraversal<\/b> is called.<\/p>\n<h2>TAB IDENTIFIERS <a name=\"TAB IDENTIFIERS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>tabid<\/i> argument to the following commands may take any of the following forms:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>An integer between zero and the number of tabs;<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>The name of a slave window;<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>A positional specification of the form \u201c@<i>x<\/i>,<i>y<\/i>\u201d, which identifies the tab<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>The literal string \u201c<b>current<\/b>\u201d, which identifies the currently-selected tab; or:<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>The literal string \u201c<b>end<\/b>\u201d, which returns the number of tabs (only valid for \u201c<i>pathname<\/i> <b>index<\/b>\u201d).<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>WIDGET COMMAND <a name=\"WIDGET COMMAND\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>pathname<\/i> <b>add<\/b> <i>window<\/i> ?<i>options&#8230;<\/i>?<\/p>\n<p style=\"margin-left:22%;\">Adds a new tab to the notebook. See <b>TAB OPTIONS<\/b> for the list of available <i>options<\/i>. If <i>window<\/i> is currently managed by the notebook but hidden, it is restored to its previous position.<\/p>\n<p style=\"margin-left:11%;\"><i>pathname<\/i> <b>configure<\/b> ?<i>options<\/i>?<\/p>\n<p style=\"margin-left:22%;\">See <i>ttk::widget(n)<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><i>pathname<\/i> <b>cget<\/b> <i>option<\/i><\/p>\n<p style=\"margin-left:22%;\">See <i>ttk::widget(n)<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><i>pathname<\/i> <b>forget<\/b> <i>tabid<\/i><\/p>\n<p style=\"margin-left:22%;\">Removes the tab specified by <i>tabid<\/i>, unmaps and unmanages the associated window.<\/p>\n<p style=\"margin-left:11%;\"><i>pathname<\/i> <b>hide<\/b> <i>tabid<\/i><\/p>\n<p style=\"margin-left:22%;\">Hides the tab specified by <i>tabid<\/i>. The tab will not be displayed, but the associated window remains managed by the notebook and its configuration remembered. Hidden tabs may be restored with the <b>add<\/b> command.<\/p>\n<p style=\"margin-left:11%;\"><i>pathname<\/i> <b>identify<\/b> <i>component x y<\/i><\/p>\n<p style=\"margin-left:22%;\">Returns the name of the element under the point given by <i>x<\/i> and <i>y<\/i>, or the empty string if no component is present at that location. The following subcommands are supported: <i><br \/> pathname<\/i> <b>identify element<\/b> <i>x y<\/i><\/p>\n<p style=\"margin-left:32%;\">Returns the name of the element at the specified location.<\/p>\n<p style=\"margin-left:22%;\"><i>pathname<\/i> <b>identify tab<\/b> <i>x y<\/i><\/p>\n<p style=\"margin-left:32%;\">Returns the index of the tab at the specified location.<\/p>\n<p style=\"margin-left:11%;\"><i>pathname<\/i> <b>index<\/b> <i>tabid<\/i><\/p>\n<p style=\"margin-left:22%;\">Returns the numeric index of the tab specified by <i>tabid<\/i>, or the total number of tabs if <i>tabid<\/i> is the string \u201c<b>end<\/b>\u201d.<\/p>\n<p style=\"margin-left:11%;\"><i>pathname<\/i> <b>insert<\/b> <i>pos subwindow options&#8230;<\/i><\/p>\n<p style=\"margin-left:22%;\">Inserts a pane at the specified position. <i>pos<\/i> is either the string <b>end<\/b>, an integer index, or the name of a managed subwindow. If <i>subwindow<\/i> is already managed by the notebook, moves it to the specified position. See <b>TAB OPTIONS<\/b> for the list of available options.<\/p>\n<p style=\"margin-left:11%;\"><i>pathname<\/i> <b>instate<\/b> <i>statespec<\/i> ?<i>script&#8230;<\/i>?<\/p>\n<p style=\"margin-left:22%;\">See <i>ttk::widget(n)<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><i>pathname<\/i> <b>select<\/b> ?<i>tabid<\/i>?<\/p>\n<p style=\"margin-left:22%;\">Selects the specified tab. The associated slave window will be displayed, and the previously-selected window (if different) is unmapped. If <i>tabid<\/i> is omitted, returns the widget name of the currently selected pane.<\/p>\n<p style=\"margin-left:11%;\"><i>pathname<\/i> <b>state<\/b> ?<i>statespec<\/i>?<\/p>\n<p style=\"margin-left:22%;\">See <i>ttk::widget(n)<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><i>pathname<\/i> <b>tab<\/b> <i>tabid<\/i> ?<i>\u2212option<\/i> ?<i>value &#8230;<\/i><\/p>\n<p style=\"margin-left:22%;\">Query or modify the options of the specific tab. If no <i>\u2212option<\/i> is specified, returns a dictionary of the tab option values. If one <i>\u2212option<\/i> is specified, returns the value of that <i>option<\/i>. Otherwise, sets the <i>\u2212option<\/i>s to the corresponding <i>value<\/i>s. See <b>TAB OPTIONS<\/b> for the available options.<\/p>\n<p style=\"margin-left:11%;\"><i>pathname<\/i> <b>tabs<\/b><\/p>\n<p style=\"margin-left:22%;\">Returns the list of windows managed by the notebook, in the index order of their associated tabs.<\/p>\n<h2>KEYBOARD TRAVERSAL <a name=\"KEYBOARD TRAVERSAL\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">To enable keyboard traversal for a toplevel window containing a notebook widget <i>$nb<\/i>, call:<\/p>\n<p style=\"margin-left:22%;\">ttk::notebook::enableTraversal $nb<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This will extend the bindings for the toplevel window containing the notebook as follows:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p><b>Control-Tab<\/b> selects the tab following the currently selected one.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p><b>Control-Shift-Tab<\/b> selects the tab preceding the currently selected one.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p><b>Alt-<\/b><i>K<\/i>, where <i>K<\/i> is the mnemonic (underlined) character of any tab, will select that tab.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">Multiple notebooks in a single toplevel may be enabled for traversal, including nested notebooks. However, notebook traversal only works properly if all panes are direct children of the notebook.<\/p>\n<h2>VIRTUAL EVENTS <a name=\"VIRTUAL EVENTS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The notebook widget generates a <b><<NotebookTabChanged>><\/b> virtual event after a new tab is selected.<\/p>\n<h2>EXAMPLE <a name=\"EXAMPLE\"><\/a> <\/h2>\n<p style=\"margin-left:22%; margin-top: 1em\">pack [<b>ttk::notebook<\/b> .nb] <br \/> .nb add [frame .nb.f1] \u2212text &#8220;First tab&#8221; <br \/> .nb add [frame .nb.f2] \u2212text &#8220;Second tab&#8221; <br \/> .nb select .nb.f2 <br \/> ttk::notebook::enableTraversal .nb<\/p>\n<h2>STYLING OPTIONS <a name=\"STYLING OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The class name for a <b>ttk::notebook<\/b> is <b>TNotebook<\/b>. The tab has a class name of <b>TNotebook.Tab<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Dynamic states: <b>active<\/b>, <b>disabled<\/b>, <b>selected<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>TNotebook<\/b> styling options configurable with <b>ttk::style<\/b> are:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212background<\/b> <i>color<\/i> <b><br \/> \u2212bordercolor<\/b> <i>color<\/i> <b><br \/> \u2212darkcolor<\/b> <i>color<\/i> <b><br \/> \u2212foreground<\/b> <i>color<\/i> <b><br \/> \u2212lightcolor<\/b> <i>color<\/i> <b><br \/> \u2212padding<\/b> <i>padding<\/i> <b><br \/> \u2212tabmargins<\/b> <i>padding<\/i> <b><br \/> \u2212tabposition<\/b> <i>side<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>TNotebook.Tab<\/b> styling options configurable with <b>ttk::style<\/b> are:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212background<\/b> <i>color<\/i> <b><br \/> \u2212bordercolor<\/b> <i>color<\/i> <b><br \/> \u2212compound<\/b> <i>compound<\/i> <b><br \/> \u2212expand<\/b> <i>padding<\/i><\/p>\n<p style=\"margin-left:22%;\">Defines how much the tab grows in size. Usually used with the <b>selected<\/b> dynamic state. <b>\u2212tabmargins<\/b> should be set appropriately so that there is room for the tab growth.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212font<\/b> <i>font<\/i> <b><br \/> \u2212foreground<\/b> <i>color<\/i> <b><br \/> \u2212padding<\/b> <i>padding<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Some options are only available for specific themes.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">See the <b>ttk::style<\/b> manual page for information on how to configure ttk styles.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">ttk::widget(n), grid(n)<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pane, tab<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  ttk::notebook \u2212 Multi-paned container widget <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3783,1],"tags":[2635,2699],"class_list":["post-6022","post","type-post","status-publish","format-standard","hentry","category-n-comandos-tcl-tk","category-sin-categoria","tag-mann","tag-ttk_notebook"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6022","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=6022"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6022\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6022"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}