Ruby ruby 用什么框架写 gui 界面

donbe · November 15, 2012 · Last by vervethe replied at April 18, 2014 · 9979 hits

如题

很多选择,qt,tk,gtk,等,.net ironRuby,等等,不过都是"绑定"。最好就避免 gui,用浏览器吧...

现在比较流行的是 shoes,没怎么用,楼主有兴趣可以研究研究

感觉 python 的 gui 发展的比 ruby 的好

jruby => java swing 有考虑过么

_why 先生的拥趸会推荐 shoes linux 上 gnome2 比较好,比如rabbit

最近看到的,可试试看。Freightrain - easy Ruby desktop development

对于有 Java 经验的,推荐 JRuby Swing:

rvm use jruby
irb

在 irb 中试试效果

win = Java::javax::swing::JFrame.new("JRuby panel")
win.size= Java::java::awt::Dimension.new(320, 240)
win.show

感觉用 Ruby 来做 GUI,核心问题是对所用的框架的熟练程度,用 Ruby 感觉只是翻译一把。楼上说的 shoes 好像不一样啊,有没有用过的求分享

#3 楼 @sailtsao shoes 暂时不是只有 shoes.exe 吗?输入的 rb 文件 里面,怎样调用其他的包?

You need to Sign in before reply, if you don't have an account, please Sign up first.