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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [demos/] [et/] [etdemo.et] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/*
2
 * etdemo.et --
3
 *
4
 *      This file demonstrates how the stand-alone module of Tix can be
5
 *      used in an ET application.
6
 *
7
 * Copyright (c) 1996, Expert Interface Technologies
8
 *
9
 * See the file "license.terms" for information on usage and redistribution
10
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
11
 *
12
 */
13
 
14
#include 
15
 
16
int main(int argc, char **argv)
17
{
18
    /*
19
     * Initialize ET, this will load the TCL and TK libraries and call
20
     * Tcl_Init() and Tk_Init() for you.
21
     */
22
 
23
    Et_Init(&argc,argv);
24
 
25
    /*
26
     * Initialize the stand-alone version of Tix.
27
     */
28
 
29
    if (Tixsam_Init(Et_Interp) != ET_OK ){
30
        fprintf(stderr,"Can't initialize the Tix extension.\n");
31
        exit(1);
32
    }
33
 
34
 
35
    /*
36
     * Now put your code here. As an example, I just "source" in the file
37
     * test.tcl in the curent directory. Notice this file is loaded in
38
     * dynamically. If you want to load in test.tcl statically, you should
39
     * use ET_INCLUDE(test.tcl) instead. Please consult your ET manual
40
     * for more details.
41
     */
42
 
43
    /* ET(source test.tcl); */
44
 
45
    /*
46
     * Go into the ET mainloop. This won't return until the application
47
     * exits.
48
     */
49
 
50
    Et_MainLoop();
51
    return 0;
52
}

powered by: WebSVN 2.1.0

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