Shoes-A cross-platform Windowing Applikit

见于 shoes-A cross-platform Windowing Applikit 一文。

Shoes简介

何谓Shoes?Shoes是一种以Ruby作为其实现接口的跨平台视窗应用程序工具包。更多信息,请浏览shoes github wiki

如何安装shoes

在ubuntu(10.04、10.10和11.04)中,打开终端输入以下命令,即可安装shoes(当然也可以手工编译最新版本的shoes):

1
$ sudo apt-get install shoes

安装完毕,编写一个小程序,验证下。

1
$ vi hello.rb
1
2
3
4
5
6
7
Shoes.app (:width => 300, :height => 50, :title => "Hello Shoes!")
{
para strong("Hello, "), " world!"

@quit = button "Exit"
@quit.click{ exit() }
}

使用以下命令运行shoes:

1
$ shoes hello.rb

看到什么了?是的,shoes窗体!Have a fun with Shoes!

Shoes Sceenshot