Re: All Your GUIs Are Belong to Us (Die, McCLIM! Die!!)





Ken Tilton wrote:

...no. There /is/ tcl-eval where you can shoot across an arbitrary Tcl string command, but...

That is still the C API Tcl_Eval entry point. Celtk does not launch wish. So...

you can get energetic and use the C API instead,

Not "C API instead". What I meant was that often there exists a dedicated C function (taking good ol' numeric args) corresponding to a Tcl command string one might pass to the Tcl_Eval C function.

So insted of:

".w.my-button dothis -x 42"

One calls (in C):

Tk_Button_doThis( &btn,0,0,42,NULL);

So you can in Celtk do:

(tcl-eval ".w.my-button dothis -x 42")

Or:

(tk-button-dothis (tk-ptr my-button) :x 42)

After adding a CFFI declaration for dothis.

kzo

--
Well, I've wrestled with reality for 35 years, Doctor, and
I'm happy to state I finally won out over it.
-- Elwood P. Dowd

In this world, you must be oh so smart or oh so pleasant.
-- Elwood's Mom
.


Quantcast