{"id":6252,"date":"2022-12-20T18:58:04","date_gmt":"2022-12-20T21:58:04","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/ttkwidget-mann\/"},"modified":"2022-12-20T18:58:04","modified_gmt":"2022-12-20T21:58:04","slug":"ttkwidget-mann","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/ttkwidget-mann\/","title":{"rendered":"ttk::widget (mann)"},"content":{"rendered":"<h1 align=\"center\">ttk::widget<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#STANDARD OPTIONS\">STANDARD OPTIONS<\/a><br \/> <a href=\"#SCROLLABLE WIDGET OPTIONS\">SCROLLABLE WIDGET OPTIONS<\/a><br \/> <a href=\"#LABEL OPTIONS\">LABEL OPTIONS<\/a><br \/> <a href=\"#COMPATIBILITY OPTIONS\">COMPATIBILITY OPTIONS<\/a><br \/> <a href=\"#COMMANDS\">COMMANDS<\/a><br \/> <a href=\"#WIDGET STATES\">WIDGET STATES<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/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::widget \u2212 Standard options and commands supported by Tk themed widgets ______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This manual describes common widget options and commands.<\/p>\n<h2>STANDARD OPTIONS <a name=\"STANDARD OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The following options are supported by all Tk themed widgets:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212class<\/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>undefined<\/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>undefined<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Specifies the window class. The class is used when querying the option database for the window\u2019s other options, to determine the default bindtags for the window, and to select the widget\u2019s default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the <b>configure<\/b> widget command.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212cursor<\/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>cursor<\/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>Cursor<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Specifies the mouse cursor to be used for the widget. See <b>Tk_GetCursor<\/b> and <i>cursors(n)<\/i> in the Tk reference manual for the legal values. If set to the empty string (the default), the cursor is inherited from the parent widget.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212takefocus<\/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>takeFocus<\/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>TakeFocus<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Determines whether the window accepts the focus during keyboard traversal. Either <b>0<\/b>, <b>1<\/b>, a command prefix (to which the widget path is appended, and which should return <b>0<\/b> or <b>1<\/b>), or the empty string. See <i>options(n)<\/i> in the Tk reference manual for the full description.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212style<\/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>style<\/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>Style<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">May be used to specify a custom widget style.<\/p>\n<h2>SCROLLABLE WIDGET OPTIONS <a name=\"SCROLLABLE WIDGET OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The following options are supported by widgets that are controllable by a scrollbar. See <i>scrollbar(n)<\/i> for more information<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212xscrollcommand<\/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>xScrollCommand<\/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>ScrollCommand<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">A command prefix, used to communicate with horizontal scrollbars. <br \/> When the view in the widget\u2019s window changes, the widget will generate a Tcl command by concatenating the scroll command and two numbers. Each of the numbers is a fraction between 0 and 1 indicating a position in the document; 0 indicates the beginning, and 1 indicates the end. The first fraction indicates the first information in the widget that is visible in the window, and the second fraction indicates the information just after the last portion that is visible.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Typically the <b>\u2212xscrollcommand<\/b> option consists of the path name of a <b>scrollbar<\/b> widget followed by \u201cset\u201d, e.g. \u201c.x.scrollbar set\u201d. This will cause the scrollbar to be updated whenever the view in the window changes.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">If this option is set to the empty string (the default), then no command will be executed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212yscrollcommand<\/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>yScrollCommand<\/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>ScrollCommand<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">A command prefix, used to communicate with vertical scrollbars. See the description of <b>\u2212xscrollcommand<\/b> above for details.<\/p>\n<h2>LABEL OPTIONS <a name=\"LABEL OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The following options are supported by labels, buttons, and other button-like widgets:<\/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. Valid values are:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p>text<\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>Display text only.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p>image<\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>Display image only.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p>center<\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>Display text centered on top of image.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p>top<\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p>bottom<\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p>left<\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p>right<\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>Display image above, below, left of, or right of the text, respectively.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p>none<\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>The default; display the image if present, otherwise the text.<\/p>\n<\/td>\n<\/tr>\n<\/table>\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. This is a list of 1 or more elements. The first element is the default image name. The rest of the list is a sequence of <i>statespec \/ value<\/i> pairs as per <b>style map<\/b>, specifying different images to use when the widget is in a particular state or combination of states. All images in the list should have the same size.<\/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 internal padding for the widget. 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>\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 text string to be displayed inside the widget (unless overridden by <b>\u2212textvariable<\/b>).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212textvariable<\/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>textVariable<\/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>Variable<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Specifies the name of a global variable whose value will be used in place of the <b>\u2212text<\/b> resource.<\/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\">If set, specifies the integer index (0-based) of a character to underline in the text string. The underlined character is used for mnemonic activation.<\/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 greater than zero, specifies how much space, in character widths, to allocate for the text label. If less than zero, specifies a minimum width. If zero or unspecified, the natural width of the text label is used.<\/p>\n<h2>COMPATIBILITY OPTIONS <a name=\"COMPATIBILITY OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This option is only available for themed widgets that have \u201ccorresponding\u201d traditional Tk widgets.<\/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\">May be set to <b>normal<\/b> or <b>disabled<\/b> to control the <b>disabled<\/b> state bit. This is a write-only option: setting it changes the widget state, but the <b>state<\/b> widget command does not affect the <b>\u2212state<\/b> option.<\/p>\n<h2>COMMANDS <a name=\"COMMANDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>pathName<\/i> <b>cget<\/b> <i>option<\/i><\/p>\n<p style=\"margin-left:22%;\">Returns the current value of the configuration option given by <i>option<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><i>pathName<\/i> <b>configure<\/b> ?<i>option<\/i>? ?<i>value option value &#8230;<\/i>?<\/p>\n<p style=\"margin-left:22%;\">Query or modify the configuration options of the widget. If one or more <i>option\u2212value<\/i> pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. If <i>option<\/i> is specified with no <i>value<\/i>, then the command returns a list describing the named option: the elements of the list are the option name, database name, database class, default value, and current value. If no <i>option<\/i> is specified, returns a list describing all of the available options for <i>pathName<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><i>pathName<\/i> <b>identify element<\/b> <i>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 an empty string if the point does not lie within any element. <i>x<\/i> and <i>y<\/i> are pixel coordinates relative to the widget. Some widgets accept other <b>identify<\/b> subcommands.<\/p>\n<p style=\"margin-left:11%;\"><i>pathName<\/i> <b>instate<\/b> <i>statespec<\/i> ?<i>script<\/i>?<\/p>\n<p style=\"margin-left:22%;\">Test the widget\u2019s state. If <i>script<\/i> is not specified, returns 1 if the widget state matches <i>statespec<\/i> and 0 otherwise. If <i>script<\/i> is specified, equivalent to <br \/> if {[<i>pathName<\/i> instate <i>stateSpec<\/i>]} <i>script<\/i><\/p>\n<p style=\"margin-left:11%;\"><i>pathName<\/i> <b>state<\/b> ?<i>stateSpec<\/i>?<\/p>\n<p style=\"margin-left:22%;\">Modify or inquire widget state. If <i>stateSpec<\/i> is present, sets the widget state: for each flag in <i>stateSpec<\/i>, sets the corresponding flag or clears it if prefixed by an exclamation point. <br \/> Returns a new state spec indicating which flags were changed:<\/p>\n<p style=\"margin-left:32%;\">set changes [<i>pathName<\/i> state <i>spec<\/i>] <i><br \/> pathName<\/i> state $changes<\/p>\n<p style=\"margin-left:22%;\">will restore <i>pathName<\/i> to the original state. If <i>stateSpec<\/i> is not specified, returns a list of the currently-enabled state flags.<\/p>\n<p style=\"margin-left:11%;\"><i>pathName<\/i> <b>xview<\/b> <i>args<\/i><\/p>\n<p style=\"margin-left:22%;\">This command is used to query and change the horizontal position of the content in the widget\u2019s window. It can take any of the following forms: <i><br \/> pathName<\/i> <b>xview<\/b><\/p>\n<p style=\"margin-left:32%;\">Returns a list containing two elements. Each element is a real fraction between 0 and 1; together they describe the horizontal span that is visible in the window. For example, if the first element is .2 and the second element is .6, 20% of the widget\u2019s content is off-screen to the left, the middle 40% is visible in the window, and 40% of the content is off-screen to the right. These are the same values passed to scrollbars via the <b>\u2212xscrollcommand<\/b> option.<\/p>\n<p style=\"margin-left:22%;\"><i>pathName<\/i> <b>xview<\/b> <i>index<\/i><\/p>\n<p style=\"margin-left:32%;\">Adjusts the view in the window so that the content given by <i>index<\/i> is displayed at the left edge of the window.<\/p>\n<p style=\"margin-left:22%;\"><i>pathName<\/i> <b>xview moveto<\/b> <i>fraction<\/i><\/p>\n<p style=\"margin-left:32%;\">Adjusts the view in the window so that the character <i>fraction<\/i> of the way through the content appears at the left edge of the window. <i>Fraction<\/i> must be a fraction between 0 and 1.<\/p>\n<p style=\"margin-left:22%;\"><i>pathName<\/i> <b>xview scroll<\/b> <i>number what<\/i><\/p>\n<p style=\"margin-left:32%;\">This command shifts the view in the window left or right according to <i>number<\/i> and <i>what<\/i>. <i>Number<\/i> must be an integer. <i>What<\/i> must be either <b>units<\/b> or <b>pages<\/b>. If <i>what<\/i> is <b>units<\/b>, the view adjusts left or right by <i>number<\/i> average-width characters on the display; if it is <b>pages<\/b> then the view adjusts by <i>number<\/i> screenfuls. If <i>number<\/i> is negative then characters farther to the left become visible; if it is positive then characters farther to the right become visible.<\/p>\n<p style=\"margin-left:11%;\"><i>pathName<\/i> <b>yview<\/b> <i>args<\/i><\/p>\n<p style=\"margin-left:22%;\">This command is used to query and change the vertical position of the content in the widget\u2019s window. It can take any of the following forms: <i><br \/> pathName<\/i> <b>yview<\/b><\/p>\n<p style=\"margin-left:32%;\">Returns a list containing two elements. Each element is a real fraction between 0 and 1; together they describe the vertical span that is visible in the window. For example, if the first element is .2 and the second element is .6, 20% of the widget\u2019s content is off-screen to the top, the middle 40% is visible in the window, and 40% of the content is off-screen to the bottom. These are the same values passed to scrollbars via the <b>\u2212yscrollcommand<\/b> option.<\/p>\n<p style=\"margin-left:22%;\"><i>pathName<\/i> <b>yview<\/b> <i>index<\/i><\/p>\n<p style=\"margin-left:32%;\">Adjusts the view in the window so that the content given by <i>index<\/i> is displayed at the top edge of the window.<\/p>\n<p style=\"margin-left:22%;\"><i>pathName<\/i> <b>yview moveto<\/b> <i>fraction<\/i><\/p>\n<p style=\"margin-left:32%;\">Adjusts the view in the window so that the item <i>fraction<\/i> of the way through the content appears at the top edge of the window. <i>Fraction<\/i> must be a fraction between 0 and 1.<\/p>\n<p style=\"margin-left:22%;\"><i>pathName<\/i> <b>yview scroll<\/b> <i>number what<\/i><\/p>\n<p style=\"margin-left:32%;\">This command shifts the view in the window up or down according to <i>number<\/i> and <i>what<\/i>. <i>Number<\/i> must be an integer. <i>What<\/i> must be either <b>units<\/b> or <b>pages<\/b>. If <i>what<\/i> is <b>units<\/b>, the view adjusts up or down by <i>number<\/i> average-width characters on the display; if it is <b>pages<\/b> then the view adjusts by <i>number<\/i> screenfuls. If <i>number<\/i> is negative then items farther to the top become visible; if it is positive then items farther to the bottom become visible.<\/p>\n<h2>WIDGET STATES <a name=\"WIDGET STATES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The widget state is a bitmap of independent state flags. Widget state flags include:<\/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=\"9%\">\n<p><b>active<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>The mouse cursor is over the widget and pressing a mouse button will cause some action to occur. (aka \u201cprelight\u201d (Gnome), \u201chot\u201d (Windows), \u201chover\u201d).<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>disabled<\/b><\/p>\n<p style=\"margin-left:22%;\">Widget is disabled under program control (aka \u201cunavailable\u201d, \u201cinactive\u201d).<\/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=\"7%\">\n<p><b>focus<\/b><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"40%\">\n<p>Widget has keyboard focus.<\/p>\n<\/td>\n<td width=\"38%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>pressed<\/b><\/p>\n<p style=\"margin-left:22%;\">Widget is being pressed (aka \u201carmed\u201d in Motif).<\/p>\n<p style=\"margin-left:11%;\"><b>selected<\/b><\/p>\n<p style=\"margin-left:22%;\">\u201cOn\u201d, \u201ctrue\u201d, or \u201ccurrent\u201d for things like checkbuttons and radiobuttons.<\/p>\n<p style=\"margin-left:11%;\"><b>background<\/b><\/p>\n<p style=\"margin-left:22%;\">Windows and the Mac have a notion of an \u201cactive\u201d or foreground window. The <b>background<\/b> state is set for widgets in a background window, and cleared for those in the foreground window.<\/p>\n<p style=\"margin-left:11%;\"><b>readonly<\/b><\/p>\n<p style=\"margin-left:22%;\">Widget should not allow user modification.<\/p>\n<p style=\"margin-left:11%;\"><b>alternate<\/b><\/p>\n<p style=\"margin-left:22%;\">A widget-specific alternate display format. For example, used for checkbuttons and radiobuttons in the \u201ctristate\u201d or \u201cmixed\u201d state, and for buttons with <b>\u2212default active<\/b>.<\/p>\n<p style=\"margin-left:11%;\"><b>invalid<\/b><\/p>\n<p style=\"margin-left:22%;\">The widget\u2019s value is invalid. (Potential uses: scale widget value out of bounds, entry widget value failed validation.)<\/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=\"7%\">\n<p><b>hover<\/b><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>The mouse cursor is within the widget. This is similar to the <b>active<\/b> state; it is used in some themes for widgets that provide distinct visual feedback for the active widget in addition to the active element within the widget.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">A <i>state specification<\/i> or <i>stateSpec<\/i> is a list of state names, optionally prefixed with an exclamation point (!) indicating that the bit is off.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:22%; margin-top: 1em\">set b [ttk::button .b]<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"># Disable the widget: <br \/> $b <b>state<\/b> disabled<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"># Invoke the widget only if it is currently pressed and enabled: <br \/> $b <b>instate<\/b> {pressed !disabled} { .b invoke }<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"># Reenable widget: <br \/> $b <b>state<\/b> !disabled<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">ttk::intro(n), ttk::style(n)<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">state, configure, option<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  ttk::widget \u2212 Standard options and commands supported by Tk themed widgets ______________________________________________________________________________ <\/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,2870],"class_list":["post-6252","post","type-post","status-publish","format-standard","hentry","category-n-comandos-tcl-tk","category-sin-categoria","tag-mann","tag-ttk_widget"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6252","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=6252"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6252\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}