From: Ferenc Engard Date: 2003-11-16T07:15:50+09:00 Subject: Re: Need some addition in Ruby/Tk Hidetoshi NAGAI wrote: > > Hi, > > From: Ferenc Engard > Subject: Re: Need some addition in Ruby/Tk > Date: Fri, 14 Nov 2003 08:41:00 +0900 > Message-ID: <3FB41689.1B1A917E@engard.hu> > > > 1. Tkcombobox should be added in the Ruby Distribution. > > Actually, combobox should be added to Tk. :-( There is at least five > > combobox implementations, none of which are part of the core (Tcl/)Tk > > distribution. I use (strictly for prototyping, later I will replace it) > > TixComboBox. > > Why don't you create your Tkcombobox class? > I think it is not so difficult. Well, with proficient look-and-feel and proper bindings (both on keyboard and mouse) it is not so small work IMHO... > You can find following samples on the Web. > > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-list/18167 Megawidgets in ruby...? I didn't try it yet, but sounds good... I have some questions: This is from tk.rb: module TkComposite include Tk extend Tk def initialize(parent=nil, *args) [...] What does it mean if a module has an initialize method? E.g. class A def initialize ... end end class B < A include TkComposite def initialize ... super # it calls TkComposite#initialize or A#initialize? end end For automatically initializing a module, I wrote my own 'before' hack; it was unnecessary? (Although, it calls the ascendant's method even if super is not called...) I will look about this TkComposite... Ferenc