# File gtk/sample/testgtk/buttonbox.rb, line 82 def create_bbox(horizontal, title, spacing, layout) frame = Gtk::Frame.new(title) if horizontal then bbox = Gtk::HButtonBox.new else bbox = Gtk::VButtonBox.new end bbox.border_width = 5 frame.add(bbox) bbox.set_layout_style(layout) bbox.set_spacing(spacing) button = Gtk::Button.new("OK") bbox.add(button) button = Gtk::Button.new("Cancel") bbox.add(button) button = Gtk::Button.new("Help") bbox.add(button) frame end