Re: Missing bindings when running a Tk app from C
- From: Koen Danckaert <koen.news@xxxxxxxxx>
- Date: Wed, 30 Jan 2008 05:57:25 -0800 (PST)
On 29 jan, 15:44, SimonG <si...@xxxxxxxxxxxxxx> wrote:
In my previous post (Getting focus in Tk app started from C++ ) I
incorrectly assummed that the problem was due to focus not being
correctly assigned. I was wrong about that. The problem is that when
the interpreter is started through a C++ program most of the bindings
are missing. I presume that this is desired behaviour but I don't
understand why or what the recommended way is to restore the bindings
to their script defaults. The following program illustrates the
problem - running as a script gives 37 'Listbox' bindings and 10 'all'
bindings. Running the same program from the C++ gives 0 'Listbox'
bindings and 8 'all' bindings.
#include "tk.h"
static int appInitProc(Tcl_Interp *interp) {
Tk_Init(interp);
Maybe you forgot Tcl_Init(interp), which has to be done before
Tk_Init(interp).
--Koen
.
- Follow-Ups:
- Re: Missing bindings when running a Tk app from C
- From: SimonG
- Re: Missing bindings when running a Tk app from C
- References:
- Missing bindings when running a Tk app from C
- From: SimonG
- Missing bindings when running a Tk app from C
- Prev by Date: Re: Time out operation
- Next by Date: Re: Why doesn't foreach return a value
- Previous by thread: Missing bindings when running a Tk app from C
- Next by thread: Re: Missing bindings when running a Tk app from C
- Index(es):
Relevant Pages
|