What is Ruby's default GUI framework?

蹲街弑〆低调 提交于 2019-12-11 12:34:33

问题


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


回答1:


Ruby uses Tk as well.




回答2:


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:


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!




回答4:


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.



来源:https://stackoverflow.com/questions/1401633/what-is-rubys-default-gui-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!