From: Lyle Johnson Date: 2002-12-01T09:41:14+09:00 Subject: Re: use of FXSwitcher ? --correct! (sorry) Ludo wrote: > I don't understand why this don't construct correctly the GUI : > > class Switcher < FXSwitcher > def initialise(p) > super(p, FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0) > FXLabel.new(self, "area 1", nil, LAYOUT_FILL_X|LAYOUT_FILL_Y) > FXLabel.new(self, "area 2", nil, LAYOUT_FILL_X|LAYOUT_FILL_Y) > end > end > Switcher.new Guy has already pointed out the misspelling of "initialize", which is a big problem. But it's also going to be a problem if you are truly constructing the switcher with the statement: Switcher.new since you're not passing in the parent widget (i.e. the "p" argument to Switcher#initialize).