Re: All Your GUIs Are Belong to Us (Die, McCLIM! Die!!)
- From: Ken Tilton <kentilton@xxxxxxxxx>
- Date: Mon, 29 Jan 2007 15:01:20 -0500
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
.
- References:
- All Your GUIs Are Belong to Us (Die, McCLIM! Die!!)
- From: Ken Tilton
- Re: All Your GUIs Are Belong to Us (Die, McCLIM! Die!!)
- From: philip . armitage
- Re: All Your GUIs Are Belong to Us (Die, McCLIM! Die!!)
- From: Ken Tilton
- All Your GUIs Are Belong to Us (Die, McCLIM! Die!!)
- Prev by Date: Re: Is there any eq t test in Common Lisp?
- Next by Date: Re: Array access
- Previous by thread: Re: All Your GUIs Are Belong to Us (Die, McCLIM! Die!!)
- Next by thread: Re: All Your GUIs Are Belong to Us (Die, McCLIM! Die!!)
- Index(es):