Ruby GNOME 图形用户界面
随着最近发布的 GNOME 3 和 Ubuntu 迁移到 Unity,Ruby 开发者应该使用什么工具包来开发他们的应用程序?我知道有 GTK2 的绑定,这些还可以使用吗?
With the recent release of GNOME 3 and Ubuntu moving to Unity, what toolkit should rubyists be using to develop their apps? I know that there are bindings to GTK2, are these still ok to use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用 GTK 2 绑定仍然可以 - GTK 2 和 3 将在未来几年内并行安装在大多数桌面发行版上。也就是说,在编写应用程序时,您应该记住,当这些绑定变得流行时,您应该将其更新到 GTK 3。 看看 GTK 2 之间的差异3、不要编写到时候难以移植的代码。
It is still OK to use the GTK 2 bindings - GTK 2 and 3 will be installed in parallel on most desktop distributions for several years yet. That said, you should keep in mind while you're writing your application that you should update it to GTK 3 when those bindings become prevalent. Take a look at the differences between GTK 2 and 3 and don't write code that will be hard to port when the time comes.
看看视觉红宝石。它使用GTK2,它已经存在了一段时间,所以它很稳定。它专为制作 ruby GUI 而设计:
http://visualruby.net
Take a look at visualruby. It uses GTK2, which has been around for a while, so its stable. Its specifically designed for making ruby GUIs:
http://visualruby.net
我听说过关于红宝石鞋的好消息,尽管我自己从未尝试过。也许你应该检查一下?
I've heard good things about ruby shoes although never tried it myself. Maybe you should check it out?