On Fri, 13 Jan 2006 19:45:07 +0100, John Maclean <info / jayeola.org> wrote: > > i) When asking a question is it best to paste the source code in > somewhere like http://rafb.net so that all can see? > ii) Do people on this mailing list mind attachments containing code? Most of the time, you should be able to go by with code excerpts under 40 lines of code, you can as well put them into the mail body. > ii) With regards to ruby-tcltk > a) The package has some demos under > /usr/share/doc/ruby-tcltk-1.8.4/tk/sample/demos-en > b) Looking at /usr/share/doc/ruby-tcltk-1.8.4/tk/sample/demos-en/widget > I'm finding it hard to see how to bind a button to "pop-up" > anotherwidget. (I think that the correct term is "Invoking" or > "binding"). > Ech, I'm not that Tk savvy, but speaking from general GUI experience, what you're describing isn't really that common, and I'm not surprised the Tk samples don't feature it - use of dialogs, or just hiding / showing widgets is more common. You should be able to add GUI widgets at runtime in event handlers just like you do when first creating the GUI, I'd first check if that works out of the box. If not, you probably need to tell Tk to redo the layout of widgets either in the root element, or if it's possible, just the one containing the new widgets. You really need someone Tk-savvy to tell you more. David Vallner