From: Lyle Johnson Date: 2001-08-15T23:32:25+09:00 Subject: [ruby-talk:19781] Re: wxWindows and Qt for Ruby > against this design in other languages. All props go to those who have > ported Qt to ruby and Python but in either case they opted to "preserve" the > signal slot design as opposed to something more Tkinter(ish) in the case of > Python or just Ruby(ish) in the case of Ruby. For example Dave Thomas gave > this cute example in his book with proc objects as anonymous event sinks. > Any experiences or comments on this would be appreciated as I really enjoy > other points of view on this topic. It's important to have a GUI library > and after developing in Java it can be really nice develop cross platform > UI. But as we know from Java interpreted UI libraries can really suck in > terms of performance and banging out interpreted platform UI hacks because > things don't line up or wotever. You already mentioned how cleanly event handlers in Ruby/Tk work; you might also look at what they're doing in Ruby/GTK, which is very nice, e.g. button = Gtk::Button.new(...) button.signal_connect('clicked') { ... this code block is the 'clicked' handler for the button ... } Very easy and unobtrusive. I hope to push FXRuby in this direction in the near future. I lost you when you started talking about Java and "interpreted UI libraries" (i.e. I'm not sure what point you were trying to make) and so I have no response to that part! Hope this helps, Lyle