This weekend's project has been to work on Gnocl's binding to the LibGlade libraries. So far, so good. For those interested, here's the tcl test script.
[code=]#---------------
# gladeXMLTest.tcl
#---------------
# William J Giddings
# 21-Nov-2009
#---------------
#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"
package require Gnocl
package require GnoclGladeXML
gnocl::gladeXML glade calculator.glade
gnocl::mainLoop[/code]
And here's a screenshot:
Now, the next step is responding to events. By far the simplest and quickest way to do this is to provide script the access to the widgets constructed in the glade file.
Anyone got any suggestions on how to 'step' through the widget tree? Is there an arcane Gtk+ call that will 'reveal all'?
I need to supply widget pointers in order to register them with the Tcl Interpreter.
Thanks.
Will