# File ext/widgets.rb, line 476
  def initialize(name, x, y, buttons = {}, layout = Layout::Vertical, spacing = -1, theme = Themes::blank)
    super(name,x,y,x,y,Themes::blank,false)
    @buttons = Array.new(buttons.size)
    i = 0
    if layout == Layout::Horizontal
      if spacing == -1
        spacing = 75
      end
      buttons.each { |k,v|
        @buttons.push(RadioButton.new(k, x+i, y, v, self, false, theme))
        i+=spacing
      }
    else
      if spacing == -1
        spacing = 25
      end
      buttons.each { |k,v|
        @buttons.push(RadioButton.new(k, x, y+i, v, self, false, theme))
        i+=spacing
      }
    end
  end