Opening a TCL gui within Java code -
i have tcl file uses tcl's bwidget package i've been using gui program. want able load gui separate java program. i've looked jacl , swank, don't seem want.
i've tried following jacl it's unable evaluate file. while debugging, can see completes parsing tcl file, throws exception while parsing through bwidget package tcl files. here's java code:
interp interp = new interp(); try { interp.evalfile("c:\\ctp\\tcl\\luxonctp32.tcl"); } catch (tclexception ex) { int code = ex.getcompletioncode(); system.err.println("command returned bad error code: " + code); } { interp.dispose(); }
any ideas on how can accomplish want do? possible?
tcl can not display gui. uses plugin called tk that.
in c reference implementation of tcl tk well.
tk has not been ported java, tcl has.
you can not use jacl display tk widgets, tclblend that, because tclblend uses c reference implementation of tcl. means user needs working tcl/tk installation.
there problems tclblend , tcl > 8.5 through, result in segfault.
iirc have remove conditional if
around tcl_findnameofexecutable
in tclblends c code (and compile yourself).
Comments
Post a Comment