logo       

Ruby/LibGlade: multiple GladeXML objects: msg#00775

lang.ruby.general

Subject: Ruby/LibGlade: multiple GladeXML objects

hi,

i am trying to load two glade files one after another. is there a
special trick? or is it not possible?

something like the following, although my program has these two GladeXML
instantiations in seperate methods, the first calling the second when
logon is successful.

g1 = GladeXML.new('logon.glade') { |handler_name|
...
}
Gtk::main

g2 = GladeXML.new('search.glade') { |handler_name|
...
}
Gtk::main

i get an error on the second call at g2 = GladeXML ...

(eval):13:in 'doConnect': undefined method 'arity' for nil (NameError)

any help would be much appreciated.

--
~transami




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise