{"id":6212,"date":"2022-12-20T18:58:02","date_gmt":"2022-12-20T21:58:02","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/label-mann\/"},"modified":"2022-12-20T18:58:02","modified_gmt":"2022-12-20T21:58:02","slug":"label-mann","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/label-mann\/","title":{"rendered":"label (mann)"},"content":{"rendered":"<h1 align=\"center\">label<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#STANDARD OPTIONS\">STANDARD OPTIONS<\/a><br \/> <a href=\"#WIDGET-SPECIFIC OPTIONS\">WIDGET-SPECIFIC OPTIONS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#WIDGET COMMAND\">WIDGET COMMAND<\/a><br \/> <a href=\"#BINDINGS\">BINDINGS<\/a><br \/> <a href=\"#EXAMPLE\">EXAMPLE<\/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\">label \u2212 Create and manipulate \u2019label\u2019 non-interactive text or image widgets<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>label<\/b> <i>pathName<\/i> ?<i>options<\/i>?<\/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>\u2212activebackground<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212disabledforeground<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212padx<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p><b>\u2212activeforeground<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212font<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212pady<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p><b>\u2212anchor<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212foreground<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212relief<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p><b>\u2212background<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212highlightbackground<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212takefocus<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p><b>\u2212bitmap<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212highlightcolor<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212text<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p><b>\u2212borderwidth<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212highlightthickness<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212textvariable<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p><b>\u2212compound<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212image<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212underline<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p><b>\u2212cursor<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212justify<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212wraplength<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">See the <b>options<\/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\">Specifies a desired height for the label. If an image or bitmap is being displayed in the label then the value is in screen units (i.e. any of the forms acceptable to <b>Tk_GetPixels<\/b>); for text it is in lines of text. If this option is not specified, the label\u2019s desired height is computed from the size of the image or bitmap or text being displayed in it.<\/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\">Specifies one of three states for the label: <b>normal<\/b>, <b>active<\/b>, or <b>disabled<\/b>. In normal state the button is displayed using the <b>\u2212foreground<\/b> and <b>\u2212background<\/b> options. In active state the label is displayed using the <b>\u2212activeforeground<\/b> and <b>\u2212activebackground<\/b> options. In the disabled state the <b>\u2212disabledforeground<\/b> and <b>\u2212background<\/b> options determine how the button is displayed.<\/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\">Specifies a desired width for the label. If an image or bitmap is being displayed in the label then the value is in screen units (i.e. any of the forms acceptable to <b>Tk_GetPixels<\/b>); for text it is in characters. If this option is not specified, the label\u2019s desired width is computed from the size of the image or bitmap or text being displayed in it. ______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>label<\/b> command creates a new window (given by the <i>pathName<\/i> argument) and makes it into a label widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the label such as its colors, font, text, and initial relief. The <b>label<\/b> command returns its <i>pathName<\/i> argument. At the time this command is invoked, there must not exist a window named <i>pathName<\/i>, but <i>pathName<\/i>\u2019s parent must exist.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">A label is a widget that displays a textual string, bitmap or image. If text is displayed, it must all be in a single font, but it can occupy multiple lines on the screen (if it contains newlines or if wrapping occurs because of the <b>\u2212wraplength<\/b> option) and one of the characters may optionally be underlined using the <b>\u2212underline<\/b> option. The label can be manipulated in a few simple ways, such as changing its relief or text, using the commands described below.<\/p>\n<h2>WIDGET COMMAND <a name=\"WIDGET COMMAND\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>label<\/b> command creates a new Tcl command whose name is <i>pathName<\/i>. This command may be used to invoke various operations on the widget. It has the following general form:<\/p>\n<p style=\"margin-left:22%;\"><i>pathName option<\/i> ?<i>arg arg &#8230;<\/i>?<\/p>\n<p style=\"margin-left:11%;\"><i>Option<\/i> and the <i>arg<\/i>s determine the exact behavior of the command. The following commands are possible for label widgets: <i><br \/> 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>. <i>Option<\/i> may have any of the values accepted by the <b>label<\/b> command.<\/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 no <i>option<\/i> is specified, returns a list describing all of the available options for <i>pathName<\/i> (see <b>Tk_ConfigureInfo<\/b> for information on the format of this list). If <i>option<\/i> is specified with no <i>value<\/i>, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no <i>option<\/i> is specified). 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. <i>Option<\/i> may have any of the values accepted by the <b>label<\/b> command.<\/p>\n<h2>BINDINGS <a name=\"BINDINGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">When a new label is created, it has no default event bindings: labels are not intended to be interactive.<\/p>\n<h2>EXAMPLE <a name=\"EXAMPLE\"><\/a> <\/h2>\n<p style=\"margin-left:22%; margin-top: 1em\"># Make the widgets <b><br \/> label<\/b> .t \u2212text &#8220;This widget is at the top&#8221; \u2212bg red <b><br \/> label<\/b> .b \u2212text &#8220;This widget is at the bottom&#8221; \u2212bg green <b><br \/> label<\/b> .l \u2212text &#8220;LeftnHandnSide&#8221; <b><br \/> label<\/b> .r \u2212text &#8220;RightnHandnSide&#8221; <br \/> text .mid <br \/> .mid insert end &#8220;This layout is like Java\u2019s BorderLayout&#8221; <br \/> # Lay them out <br \/> pack .t \u2212side top \u2212fill x <br \/> pack .b \u2212side bottom \u2212fill x <br \/> pack .l \u2212side left \u2212fill y <br \/> pack .r \u2212side right \u2212fill y <br \/> pack .mid \u2212expand 1 \u2212fill both<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">labelframe(n), button(n), ttk::label(n)<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">label, widget<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  label \u2212 Create and manipulate \u2019label\u2019 non-interactive text or image 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":[2840,2635],"class_list":["post-6212","post","type-post","status-publish","format-standard","hentry","category-n-comandos-tcl-tk","category-sin-categoria","tag-label","tag-mann"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6212","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=6212"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6212\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}