What is Ruby's default GUI framework?

2019-08-12 17:40发布

If I remember correctly Python ships with Tk as it's standard framework. What's Ruby's default?

4条回答
淡お忘
2楼-- · 2019-08-12 18:00

Ruby ships with the tk libraries. Also available are fxruby

is quite popular and shoes was gaining some momentum until the authors mysterious disappearence. Of course there are Qt libraries available as well.

查看更多
啃猪蹄的小仙女
3楼-- · 2019-08-12 18:06

The answer previously accepted is now obsolete. Tk no longer comes automatically with Ruby, but must be installed as a gem. There is now no default GUI for Ruby.

查看更多
Luminary・发光体
5楼-- · 2019-08-12 18:25

There are quiet a few libraries. Most known are: - tk (as mentioned earlier: http://www.rubycentral.com/pickaxe/ext%5Ftk.html) - gtk (http://ruby-gnome2.sourceforge.jp/) - fxruby (as mentioned earlier: http://www.fxruby.org/) - qt (http://techbase.kde.org/Development/Languages/Ruby)

Shoes doesn't deliver a gui library. It is more like a cross-platform framework to build light-weight gui-applications. On linux it uses gtk-libraries.

There's a nice framework for building gui-applications: Rugui (http://rugui.org/). It is a framework for bigger applications and it copies the Ruby On Rails way of working. It supports an MVC design, gui & qt and Rspec & TestUnit. Worth looking at!

查看更多
登录 后发表回答