Shoes.app :width => 520, :height => 200, :title => "Simulate a table" do
  stack :width => 100 do
    button "All"
    @p = para "No buttons clicked"
  end
  stack :width => 400, :height => 150, :scroll => true, :title => "Addons" do
    flow do
      stack :width => "33%" do inscription "Revision / Date", :weight => "bold" end
      stack :width => "33%" do inscription "Addon", :weight => "bold"  end
      stack :width => "33%" do inscription "Update", :weight => "bold" end
    end

    (1..10).each do |i|
      flow do 
        stack :width => "33%" do para "1" end
        stack :width => "33%" do para "Addon #{i}" end
        stack :width => "33%" do
          button "Button #{i}" do
            @p.replace "Button #{i} was clicked"
          end
        end
      end
    end
  end
end
