OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tk/] [doc/] [Tk_Init.3] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
'\"
2
'\" Copyright (c) 1995-1996 Sun Microsystems, Inc.
3
'\"
4
'\" See the file "license.terms" for information on usage and redistribution
5
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
6
'\"
7
'\" RCS: @(#) $Id: Tk_Init.3,v 1.1.1.1 2002-01-16 10:25:48 markom Exp $
8
'\"
9
.so man.macros
10
.TH Tk_Init 3 4.1 Tk "Tk Library Procedures"
11
.BS
12
.SH NAME
13
Tk_Init \- add Tk to an interpreter and make a new Tk application.
14
.SH SYNOPSIS
15
.nf
16
\fB#include \fR
17
.sp
18
int
19
\fBTk_Init\fR(\fIinterp\fR)
20
.SH ARGUMENTS
21
.AS Tcl_Interp *interp
22
.AP Tcl_Interp *interp in
23
Interpreter in which to load Tk.  Tk should not already be loaded
24
in this interpreter.
25
.BE
26
 
27
.SH DESCRIPTION
28
.PP
29
\fBTk_Init\fR is the package initialization procedure for Tk.
30
It is normally invoked by the \fBTcl_AppInit\fR procedure
31
for an application or by the \fBload\fR command.
32
\fBTk_Init\fR adds all of Tk's commands to \fIinterp\fR
33
and creates a new Tk application, including its main window.
34
If the initialization is successful \fBTk_Init\fR returns
35
\fBTCL_OK\fR;  if there is an error it returns \fBTCL_ERROR\fR.
36
\fBTk_Init\fR also leaves a result or error message
37
in \fIinterp->result\fR.
38
.PP
39
If there is a variable \fBargv\fR in \fIinterp\fR, \fBTk_Init\fR
40
treats the contents of this variable as a list of options for the
41
new Tk application.
42
The options may have any of the forms documented for the
43
\fBwish\fR application (in fact, \fBwish\fR uses Tk_Init to process
44
its command-line arguments).
45
 
46
.SH KEYWORDS
47
application, initialization, load, main window

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.