Is it possible to call Tcl procedures containing function pointers (or callback functions) from Python? I use Tkinter to call Tcl procedures from Python.
Python snippet:
proc callbackFunc(): print "I am in callbackFunc" cb = callbackFunc Tkinter.Tk.call('tclproc::RetrieveInfo', cb)
Fragment of Tcl:
proc tclproc::RetrieveInfo() { callback } { eval $callback }
Note. I cannot change the Tcl code as my external library for my application.
// Hemant
python tcl tkinter
Hemanth
source share