summaryrefslogtreecommitdiffstats
path: root/doc/button.n
diff options
context:
space:
mode:
Diffstat (limited to 'doc/button.n')
-rw-r--r--doc/button.n8
1 files changed, 3 insertions, 5 deletions
diff --git a/doc/button.n b/doc/button.n
index 1a7d2ec..ca12ea2 100644
--- a/doc/button.n
+++ b/doc/button.n
@@ -1,3 +1,4 @@
+'\" -*- nroff -*-
'\"
'\" Copyright (c) 1990-1994 The Regents of the University of California.
'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
@@ -5,7 +6,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: button.n,v 1.17 2008/05/11 00:12:02 patthoyts Exp $
+'\" RCS: @(#) $Id: button.n,v 1.18 2008/06/30 22:57:02 dkf Exp $
'\"
.so man.macros
.TH button n 4.4 Tk "Tk Built-In Commands"
@@ -77,7 +78,6 @@ If the width is negative then this specifies a minimum width.
If this option is not specified, the button's desired width is computed
from the size of the image or bitmap or text being displayed in it.
.BE
-
.SH DESCRIPTION
.PP
The \fBbutton\fR command creates a new window (given by the
@@ -105,7 +105,6 @@ and it can be made to flash. When a user invokes the
button (by pressing mouse button 1 with the cursor over the
button), then the Tcl command specified in the \fB\-command\fR
option is invoked.
-
.SH "WIDGET COMMAND"
.PP
The \fBbutton\fR command creates a new Tcl command whose
@@ -151,7 +150,6 @@ Invoke the Tcl command associated with the button, if there is one.
The return value is the return value from the Tcl command, or an
empty string if there is no command associated with the button.
This command is ignored if the button's state is \fBdisabled\fR.
-
.SH "DEFAULT BINDINGS"
.PP
Tk automatically creates class bindings for buttons that give them
@@ -178,8 +176,8 @@ actions occur: the button is completely non-responsive.
.PP
The behavior of buttons can be changed by defining new bindings for
individual widgets or by redefining the class bindings.
-
.SH EXAMPLES
+.PP
This is the classic Tk
.QW "Hello, World!"
demonstration: