前面我们看到了一些Ruby中GUI编程中常见的库和它们的Ruby绑定版本(在Ruby中使用用C语言写的东西真的是太简单了),下面,还要介绍另外几个。前文是翻译的,本文是自己整理的。
vRuby(VisualuRuby)
"VisualuRuby" 是一个用在MS windows下的Ruby GUI 库。这个项目由两部分组成:swin和vruby。swin是一个Ruby扩展库,vruby是对这个库的包装( wrap),事件处理机制类似VisualBasic,但注意本项目名字和微软无关。
一段代码:
|
Rogue
Rouge是一个高层的GUI toolkit,它解释类似XUL的xml格式的GUI描述语言,并且提供了本地Ruby API。Rouge设计目标是作为前端使用,后端允许用户选择适合自己的本地GUI toolkit实现。
Rouge遵从Ruby license
RubyWebDialogs
意思为用web浏览器作为Ruby应用程序的GUI
Conclusion by Sy: 我想这个库真的不太适合新手。尽管我能安装成功,但是我却不知道如何写应用程序,甚至是hello world。但我想目前这不是开发者的错误。一些例子可以见:http://rwdapplications.rubyforge.org/wiki/wiki.pl)
Alph
Alph是一种中间性接口,它用来连接Ruby(1.8)和Flash(v7)。
有用连接:
- Tk主页 :http://tcl.tk/
- RubyTk (http://www.rubygarden.org/ruby?RubyTk)
Tk (http://www.rubygarden.org/ruby?RubyTk/Tk)
RubyTk on OSX (http://www.rubygarden.org/ruby?RubyTkOnOSX) - Ruby/Tk 文档(http://raa.ruby-lang.org/project/rubytk_en/) -- Translated to english from the draft documentation.
http://www.macdevcenter.com/pub/a/mac/2004/06/25/ruby_pt1.html -- The first in a three-part series that teaches you how to use Ruby and Tk on your Mac OS X system.
Ruby Tk WebBrowser Plugin (http://www.rubygarden.org/ruby?RubyTk/WebBrowserPlugin) - Ruby-Tk 教程
http://httpd.chello.nl/k.vangelder/ruby/learntk/
http://approximity.com/ruby/rubytk.html - FXRuby (http://www.fxruby.org/) -- Ruby扩展,一个从FOX 到Ruby的接口
FOX和FXRuby 的区别(http://www.fxruby.org/doc/differences.html)
Freshmeat FXRuby Page (http://freshmeat.net/projects/fxruby/)
FXRuby 例子(http://www.fxruby.org/doc/examples.html)
FoxTails (http://redshift.sourceforge.net/foxtails/) - Extensions to FOX / FXRuby
FxListView (http://raa.ruby-lang.org/project/fxlistview/) -- a FXRuby-based multi-column listbox.
使用Ruby和FOX创建GUI应用程序 (http://www.rubyconf.org/2001/talks/lyle/text0.htm) - GTK 主页(http://www.gtk.org/)
- Ruby-GNOME2 主页(http://ruby-gnome2.sourceforge.jp/)
- http://raa.ruby-lang.org/project/rubymgl/ -- RubyMgl: Extention Library to use PocketBSD GUI library "MGL".
- Redirects to here (http://homepage3.nifty.com/guion/), but is Japanese-only. The project's status has not been determined.
- Locana (http://raa.ruby-lang.org/project/locana/) -- Locana draws widgets such as text boxes, list boxes, edit boxes, buttons, check boxes, radio buttons, and combo boxes using a small set of methods defined in a GUI binding that talks directly to a GUI such as Windows and Tk.
- 10-Oct-03 - locana 0.83 Download (http://www.sevainc.com/locana_download.html)
- Ruby/Dialogs (https://chronozon.artofdns.com/dialog/) -- A simple ruby interface to the Unix Dialog program. Easily add text boxes, menus, radio list, checkboxes .. A program that was written to expand Ncurses to provide standard forms (such as text input fields and file selector forms and such).
- 23-Apr-03 (or thereabouts) dialogs 1.2 Download (https://chronozon.artofdns.com/dialog/dialogs.rb)
- Ruby/Qte (http://takahr.dhis.portside.net/cgi-bin/rwiki.cgi?cmd=view;name=Ruby%2FQte%3Aen) -- A Ruby bindings for Qt/Embedded toolkit. It's developed for Sharp Zaurus SL-A300. But it might be able to use for other Zaurus(SL-5000 series) or iPAQ Linux.
- 13-Jan-03 - 0.4.2
- Ruby/Wise (http://wise.rubyforge.org/) | Ruby/Wise RubyForge Project Page (http://rubyforge.org/projects/wise/) -- Ruby WIdget Set, aimed at running on an iPAQ. low-level bindings (to X) should provide speed, Ruby itself s..
- Download instructions (http://wise.rubyforge.org/download.html)
- This project appears to be stillborn.
- This guy is also a developer for Rogue.
- http://www.usinglinux.org/x11-toolkits/
- Freshmeat: GUI Toolkits for The X Window System (http://freshmeat.net/articles/view/928/)