From: Neil Conway Date: 2001-12-06T14:44:14+09:00 Subject: [ruby-talk:27633] Re: glade xml strange behaviour On Wed, 2001-12-05 at 23:56, Niko Schwarz wrote: > Hello, > I half copied the sample script and adapted it slightly, and now I have these lines: > > def initialize > @glade = GladeXML.new("maiachat.glade") {|handler| method(handler)} > @entry = @glade.getWidged("textfield") > end > > looks good so far, but I don't get this error message: > > ,----[ error msg ] > | igel@linux:~/chat > ruby chat.rb > | chat.rb:8:in `initialize': undefined method `getWidged' for # (NameError) > | from chat.rb:24:in `new' > | from chat.rb:24 > `---- > > In the sample script its nearly the same, and I know that the method getWidget exists, > what am I getting wrong here? My guess would be that 'widget' ends in a 't', not a 'd' ;-) Cheers, Neil -- Neil Conway PGP Key ID: DB3C29FC