Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (19 sloc) 0.662 kB
Shoes.app :title => "shoes-contrib browser", :height => 75, :width => 355 do
stack do
flow do
para "Choose a category:"
@category_box = list_box :items => %w[animation app art basic elements events expert good kernel manipulation position simple styles]
end
@example_flow = flow :hidden => true do
para "Choose an example:"
@example_box = list_box :items => []
end
@category_box.change do |box|
@example_flow.style :hidden => false
@example_box.items = Dir.glob("#{box.text}/*.rb")
end
@example_box.change do |box|
eval(File.open(box.text, "rb").read, TOPLEVEL_BINDING)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.