{"id":6280,"date":"2022-12-20T18:58:05","date_gmt":"2022-12-20T21:58:05","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/ttkbutton-mann\/"},"modified":"2022-12-20T18:58:05","modified_gmt":"2022-12-20T21:58:05","slug":"ttkbutton-mann","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/ttkbutton-mann\/","title":{"rendered":"ttk::button (mann)"},"content":{"rendered":"<h1 align=\"center\">ttk::button<\/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=\"#WIDGET COMMAND\">WIDGET COMMAND<\/a><br \/> <a href=\"#STANDARD STYLES\">STANDARD STYLES<\/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::button \u2212 Widget that issues a command when pressed<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ttk::button<\/b> <i>pathName<\/i> ?<i>options<\/i>? ______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">A <b>ttk::button<\/b> widget displays a textual label and\/or image, and evaluates a command when pressed.<\/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>\u2212compound<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212cursor<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p><b>\u2212image<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212state<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212style<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p><b>\u2212takefocus<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212text<\/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>\u2212underline<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212width<\/b><\/p>\n<\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<\/table>\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>\u2212command<\/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>command<\/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>Command<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">A script to evaluate when the widget is invoked.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212default<\/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>default<\/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>Default<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">May be set to one of <b>normal<\/b>, <b>active<\/b>, or <b>disabled<\/b>. In a dialog box, one button may be designated the \u201cdefault\u201d button (meaning, roughly, \u201cthe one that gets invoked when the user presses <Enter>\u201d). <b>active<\/b> indicates that this is currently the default button; <b>normal<\/b> means that it may become the default button, and <b>disabled<\/b> means that it is not defaultable. The default is <b>normal<\/b>.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Depending on the theme, the default button may be displayed with an extra highlight ring, or with a different border color.<\/p>\n<h2>WIDGET COMMAND <a name=\"WIDGET COMMAND\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">In addition to the standard <b>cget<\/b>, <b>configure<\/b>, <b>identify<\/b>, <b>instate<\/b>, and <b>state<\/b> commands, buttons support the following additional widget commands: <i><br \/> pathName<\/i> <b>invoke<\/b><\/p>\n<p style=\"margin-left:22%;\">Invokes the command associated with the button.<\/p>\n<h2>STANDARD STYLES <a name=\"STANDARD STYLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Ttk::button<\/b> widgets support the <b>Toolbutton<\/b> style in all standard themes, which is useful for creating widgets for toolbars.<\/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::button<\/b> is <b>TButton<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Dynamic states: <b>active<\/b>, <b>disabled<\/b>, <b>pressed<\/b>, <b>readonly<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>TButton<\/b> styling options configurable with <b>ttk::style<\/b> are:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212anchor<\/b> <i>anchor<\/i> <b><br \/> \u2212background<\/b> <i>color<\/i> <b><br \/> \u2212bordercolor<\/b> <i>color<\/i> <b><br \/> \u2212compound<\/b> <i>compound<\/i> <b><br \/> \u2212darkcolor<\/b> <i>color<\/i> <b><br \/> \u2212foreground<\/b> <i>color<\/i> <b><br \/> \u2212font<\/b> <i>font<\/i> <b><br \/> \u2212highlightcolor<\/b> <i>color<\/i> <b><br \/> \u2212highlightthickness<\/b> <i>amount<\/i> <b><br \/> \u2212lightcolor<\/b> <i>color<\/i> <b><br \/> \u2212padding<\/b> <i>padding<\/i> <b><br \/> \u2212relief<\/b> <i>relief<\/i> <b><br \/> \u2212shiftrelief<\/b> <i>amount<\/i><\/p>\n<p style=\"margin-left:22%;\"><b>\u2212shiftrelief<\/b> specifies how far the button contents are shifted down and right in the <i>pressed<\/i> state. This action provides additional skeumorphic feedback.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212width<\/b> <i>amount<\/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), button(n)<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">widget, button, default, command<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  ttk::button \u2212 Widget that issues a command when pressed <\/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,2889],"class_list":["post-6280","post","type-post","status-publish","format-standard","hentry","category-n-comandos-tcl-tk","category-sin-categoria","tag-mann","tag-ttk_button"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6280","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=6280"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6280\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}