新手问题 怎么用 shoes packer 来打包 shoes

736248591 · 2015年02月10日 · 1445 次阅读

怎么用 shoes packer 来打包 shoes

源代码:

Shoes.app height: 150, width: 250 do
  background rgb(240, 250, 208)
  stack margin: 10 do
    button "Start" do
      @time = Time.now
      @label.replace "Stop watch started at #@time"
    end
    button "Stop" do
      @label.replace "Stopped, ", strong("#{Time.now - @time}"), " seconds elapsed."
    end
    @label = para "Press ", strong("start"), " to begin timing."
  end
end
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号