From: Hal Fulton Date: 2004-04-08T15:18:53+09:00 Subject: Re: Idea: Simplified GTK Its Me wrote: >>Is it really *that* bad to do additional tweaking with a separate method >>call? > > No, it isn't. It's just that I don't see > (1) button "Label" { > block > } > as that much better than > (s) button { > label "Label" > on_click { block } > } For one thing (and this is a minor point) I like to make things a single line whenever I can (without using semicolons). So I'd rather do: button("Label") { call_me } It's fewer characters, tokens, and lines this way. Maybe we could allow both. I'm a believer (though some are not) in a little "magic" parameter handling. In other words, we could code it so as to permit calling it either way. For example, when would a button ever be labelless? Default it to nil, and if no label is specified, it's the second kind of call. > Is the bigger question though: how to best scale with no (or minimal) change > to incorporate all the wonderful widgets that might exist? Hmm, I think every container would work almost the same way. Why don't we take a moderately complex example program and implement enough to get it to work? Maybe something from http://ruby-gnome2.sourceforge.net/tut/toc.htm ? Hal