Import Tk 8.6.10
This commit is contained in:
@@ -104,9 +104,9 @@ to configure aspects of the toplevel such as its background color
|
||||
and relief. The \fBtoplevel\fR command returns the
|
||||
path name of the new window.
|
||||
.PP
|
||||
A toplevel is similar to a frame except that it is created as a
|
||||
A toplevel is similar to a \fBframe\fR except that it is created as a
|
||||
top-level window: its X parent is the root window of a screen
|
||||
rather than the logical parent from its path name. The primary
|
||||
rather than the logical parent from its Tk path name. The primary
|
||||
purpose of a toplevel is to serve as a container for dialog boxes
|
||||
and other collections of widgets. The only visible features
|
||||
of a toplevel are its background color and an optional 3-D border
|
||||
@@ -117,21 +117,25 @@ The \fBtoplevel\fR command creates a new Tcl command whose
|
||||
name is the same as the path name of the toplevel's window. This
|
||||
command may be used to invoke various
|
||||
operations on the widget. It has the following general form:
|
||||
.PP
|
||||
.CS
|
||||
\fIpathName option \fR?\fIarg arg ...\fR?
|
||||
.CE
|
||||
.PP
|
||||
\fIPathName\fR is the name of the command, which is the same as
|
||||
the toplevel widget's path name. \fIOption\fR and the \fIarg\fRs
|
||||
determine the exact behavior of the command. The following
|
||||
commands are possible for toplevel widgets:
|
||||
.TP
|
||||
\fIpathName \fBcget \fIoption\fR
|
||||
.
|
||||
Returns the current value of the configuration option given
|
||||
by \fIoption\fR.
|
||||
\fIOption\fR may have any of the values accepted by the \fBtoplevel\fR
|
||||
command.
|
||||
.TP
|
||||
\fIpathName \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
|
||||
.
|
||||
Query or modify the configuration options of the widget.
|
||||
If no \fIoption\fR is specified, returns a list describing all of
|
||||
the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
|
||||
@@ -148,8 +152,10 @@ command.
|
||||
.PP
|
||||
When a new toplevel is created, it has no default event bindings:
|
||||
toplevels are not intended to be interactive.
|
||||
.PP
|
||||
Be aware that bindings on toplevels may receive events from subwidgets.
|
||||
.SH "SEE ALSO"
|
||||
frame(n)
|
||||
bind(n), bindtags(n), frame(n), wm(n)
|
||||
.SH KEYWORDS
|
||||
toplevel, widget
|
||||
'\" Local Variables:
|
||||
|
||||
Reference in New Issue
Block a user