Tk libraries?

Started by gcanyon, September 25, 2006, 10:07:19 PM

Previous topic - Next topic

gcanyon

Has anyone put together libraries for tying in to Tk to create a user interface? I'm thinking of something that shields a poor simpleton like me from having to learn any Tcl along with trying to shove newLISP into my brain. I'm thinking of something that would take



(tk-newwidget windowid widgettype widgetname)



and evaluate to whatever tk code is needed to accomplish the task. Sorry I don't understand tk well enough yet to give a reasonable example, but here's a bad example.



(tk-newwindow "prefs") #creates a new window named entry with appropriate defaults

(tk-newwidget "prefs" "entry" "username") #creates a new entry field



I don't know how well this would work, or how to do it. After all, if I did, I wouldn't need it! ;-)